Repository Creation:
remote:
- create git folder on remote and then execue git init --bare
local:
- git init
- git add *
- git commit -m
- git remote add origin <remote_url>
- git push -u origin master
Rebase Usage:
1. Combine multiple commits into one
git rebase -i HEAD~3 //
2. Make the current branch rebase to the master
git rebase master
Cherry-Pick Usage:
git cherry-pick 986ac1e92f
Others:
git update-index --assume-unchanged <file>
git clean -i
git reset --soft HEAD^