git_advanced

Git Squasing - REBASE with Interactive

git rebase -i HEAD~1
git rebase -i
git rebase

Git recent commit log modification

git commit --ammend -m
git commit --ammend

Git checkout or create branchname

git checkout -b

Git checkout move to branch

git checkout

Git push force on branch

git push -f origin

Git push to current branch to top of HEAD

git push origin HEAD

Git pull origin

git pull origin

Git Stash

git stash
git stash pop
git stash pop <0,1,2>
git stash list

Git Cherry pick (cherry picking particular commit from a branch)

git checkout git cherry-pick