mkdir
touch
rm file
rm -rf file
cd ..
cd ~
git config --global user.name 'huanghao'
git config --global user.email '1214517669@qq.com'
git config --list
git init
git add
git rm --cached file
git commit
:wq
git commit -am 'add 2.txt'
git log
git log -p -2
git log --oneline
git log --graph
git log --graph --oneline
git log --pretty=format:"%h - %an, %ar : %s"
git log --author="name"
git diff
git diff --staged
git rm filename
git mv file newFile
git mv flie 文件夹/fileName
git checkout -- fileName
git reset HEAD [fileName]
git reset --hard HEAD^
git reset --hard HEAD^^
git reset --hard [hash]
git reflog
git checkout [hash号] file
git checkout [hash] -- .
git branch [name]
git checkout [branch name]
git checkout -b [branch name]
git branch [name] -b
git branch [name] -D
git branch name hash
git merge [branch name]
git merge --abort
git log --oneline --graph --all
git remote add origin git的地址
git push -u origin master
名字.github.io
git clone 远端仓库的地址
git clone --no-checkout 远端仓库地址 名字
git clone --bare 远端仓库地址
git branch -a
git push --all
git checkout -b 本地分支名x origin/远程分支名x
git pull
git fetch
gie merge
git push origin --delete 远端分支名
git remote set-url origin 迁移的远端地址