basic
1.git init
2.git add
3.git status
4.git diff
5.git log
6.git reset
git reset HEAD^
git reset HEAD^^
git reset HEAD~88
git reset --hard 'commit ID'
git reflog
7.stage.master.
8.cancel modify
git checkout -- file
git reset HEAD file
9.git rm file
config
git config --global user.name "Your Name"<br>
git config --global user.email "email@example.com"
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
remote
associate
1.ssh-keygen -t rsa -C "youremail@example.com"
2.git remote add origin git@github.com:username/repository.git
3.git push -u origin master
clone
git clone git@github.com:username/repository.git