Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
CJefferson
on Jan 22, 2024
|
parent
|
context
|
favorite
| on:
Launch HN: Diversion (YC S22) – Cloud-Native Git A...
My biggest problem with git is branch deletion — if you never do it you end up with far too many, but deleting a branch can’t be version controlled.
renewiltord
on Jan 22, 2024
|
next
[–]
It is somewhat version-controlled but not completely. If you use the reflog you can find it again and you can find how it moved around. But the reflog gets rewritten and gc'd so it's not true vc.
AdityaSanthosh
on Jan 22, 2024
|
prev
[–]
Just curious, why do you want that to be version controlled?
CJefferson
on Jan 22, 2024
|
parent
[–]
Because I might realize later I made a mistake, or I might want to view history.
I’d I never cared about historical state and mistakes, I wouldn’t need version control at all :)
couchand
on Jan 22, 2024
|
root
|
parent
[–]
You could delete the branches locally while archiving them to any another clone of the repo.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: