Y
Hacker News
new
|
ask
|
show
|
jobs
by
CJefferson
1049 days ago
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.
2 comments
renewiltord
1049 days ago
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.
link
AdityaSanthosh
1049 days ago
Just curious, why do you want that to be version controlled?
link
CJefferson
1049 days ago
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 :)
link
couchand
1049 days ago
You could delete the branches locally while archiving them to any another clone of the repo.
link