juansebastianro
5/24/2019 - 7:06 PM

Git snippets Commands

Revert Git Merge:
  
git revert -m 1 <merge-commit>

Check Differences:

git diff origin/qa3 --name-only

Branch History:
  
git log feature/modsys.v2 --author=juan

To clean untracked files:

git clean -df

Git patch:
  
git apply --stat a_file.patch
git apply --check a_file.patch
git am --signoff < a_file.patch

Reset branch:
  
git reset --hard HEAD

Reset Merge:

git reset --hard origin/qa5