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

I create backup branches all the time. Though I rarely have to use them, they have saved my butt a couple times!


You don't need to create backup branches ahead of time with git, because the reflog saves every branch before every operation. You can create your backup branch from the reflog _after_ you discover you need it!


I did use the reflog once, when I forgot to make a backup branch. It's not one of the commands I use regularly though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: