Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> why create a backup branch instead of just pointing the rebased branch back at the original commit?

I mean, isn't that what a backup branch is? How are you going to get the hash of the original commit if you don't create a branch?

I suppose you could use git log or something to print the hash to the terminal, but that's just way more fragile than using git to keep track.



git already keeps track of refs for you.




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: