Git usable commands

Delete branches git branch -d branch-name # delete local branch git push origin :branch-name # delete remote branch Rename local branch git branch -m old-branch new-branch Join/merge last X (in example below 3) commits into one git rebase -i HEAD~3 In editor (pick last, squash 2 earlier commits): pick 7e168d2 commit message 3 s b3bd215 commit message Read more about Git usable commands[…]