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

> That understanding lets me generalise to, for example, backing up a branch (with git branch/tag) before doing a tricky rebase so I can restore it (with git reset --hard) if I need to undo.

You can also do `git reflog` on branches to see what they used to point to :)



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

Search: