gitflow-workflow (atlassian.com)
git branch # local branches
git branch -a # local and remote branches
git checkout -b branch-123 origin/branch-123 # clone remote branch branch-123 to local branch branch-123
git log --oneline
0123456 3rd commit
abcdefg 2nd commit
b6600b9 1st commit
# We want to combine 2nd and 3rd commit
git rebase -i b6600b9
# We will get prompted for this info:
pick abcdefg
squash 0123456
# And we are done:
git log --oneline
7854452 2nd commit & 3rd commit combined
b6600b9 1st commit