Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Estragon
· 10y ago · 0 comments
ultimately I lose a bunch of work.
Take a copy of the entire repository before attempting anything potentially destructive.
Comments
[–]
jeremyjh
10y ago
This is completely unnecessary. Everything git does, git can undo as long as your working tree is clean when you start the rebase. git reflog and git reset are your friends, if you want to "get back to where I was before I started this awful merge".
[–]
tom9729
10y ago
Or just write down the latest commit (or use git reflog to find it post facto) and if you mess up, do "git reset --hard <commit>" to get back to it.