Git init
git config user.name "cemon"
git config user.email "cemon_liu@126.com"
git config --global
git config --list
git status
git add 文件名
git add .
添加所有目录文件git commit -m "更新内容"
git commit -am
可以跳过add命令 直接提交git reset HEAD^
几个^ 就是退几个版本git mv README README.MD
git log
git blame file
$ ssh-keygen -t rsa -C "youremail@example.com"
打开 id_rsa.pub,复制里面的 key。git remote -v
git remote add origin [url]
git push -u origin master
git pull = git fetch git merge
git branch newbranch
git log --oneline --decorate
git log --oneline --decorate --graph --all
git checkout testing
git checkout master git merge testing
git branch -d testing
git push origin --delete serverfix