ajayns
12/5/2017 - 4:57 AM

Git Commands

A set of regularly used Git/Github commands

  1. Squash Commits (assume 2) and force push
git reset --soft HEAD~2 && git commit -m 'New commit message here'
git push origin +branch-name

ALT:

git rebase -i HEAD~2