3 ms·
Have you ever had a look at the combination of 'git reflog' and 'git reset --hard <ident>'? You can find the point before you did the uncomfortable operation an
by kingosticks 8y ago
Have you ever had a look at the combination of 'git reflog' and 'git reset --hard <ident>'? You can find the point before you did the uncomfortable operation and restore your state to exactly then. Saves having to make that backup copy (which, again, can be slow for a big repo).
- pjc50 8y agoNeither of those saves the working directory, though. So uncommitted work "feels" at risk while typing unfamiliar git commands. (I now consider myself pretty good with git as a result of being forced to learn gerrit, but I also still remember the early painful days)
- kingosticks 8y agoTrue, that's a good point.