3 ms·
They don't destroy history, they just move the branch to something that's not a descendant of what it once was. You can get the history back if you want. See
by tome 8y ago
They don't destroy history, they just move the branch to something that's not a descendant of what it once was. You can get the history back if you want.
See "All the things your branch has ever been" http://h2.jaguarpaw.co.uk/posts/git-survival-guide/ http://h2.jaguarpaw.co.uk/posts/git-survival-guide/
- Klathmon 8y agoReflog is analogous to the recycle bin (when used like this). It's nice in a pinch, but I don't want to rely on it, and it doesn't keep information forever. a revert keeps that history forever in your repo (unless you do something to explicitly delete it), which IMO is just as important as all other commits.