Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Estragon
10y ago
0 comments
Save
Share
ultimately I lose a bunch of work.
Take a copy of the entire repository before attempting anything potentially destructive.
0 comments
2 comments · 2 top-level
top
newest
oldest
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.
j
/
k
navigate · click thread line to collapse