How do you undo a git pull or git merge?

Whoa so you just pulled from the master branch and lost your local changes which were committed but not pushed to repo? No problem!! You can use the following command: $ git reflog show "reflog" is used to reference logs, record when the tips of branches and other references were updated in the local repository. … Continue reading How do you undo a git pull or git merge?