Reset and revert with GIT

Some commands that allow to go back in time with git.

Reset head to a commit (not pushed yet)

git reset --hard <commit_before_merge>

Revert a merged commit

git revert -m 1 <merge commit hash>


Written on February 20, 2018
Licence Creative Commons
Ce(tte) œuvre est mise à disposition selon les termes de la Licence Creative Commons Attribution 4.0 International.