git流程命令
git init
git clone url
git config list
git config -e
git config [--global] user.name "name"
git config [--global] user.email "[email address]"
git add [file1] [file2] [file3]/[dir]
git add .
git add -p
git rm [file1] [file2]
git rm --cached [file]
git mv [file-original] [file-renamed]
git commit [file1] [file2] -m '注释'
git commit -a
git commit -v
git commit --amend -m [message]
git commit --amend [file1] [file2]
git branch
git branch -r
git branch -a
git branch [branch-name]
git checkout -b [branch]
git branch [branch] [commit]
git branch --track [branch] [remote-branch]
git checkout [brach-name]
git checkout -t
git checkout --set-upstream [branch] [remote-brach]
git merge [branch]
git cherry-pick [commit]
git branch -d [branch-name]
git push origin --delete [branch-name]
git branch -dr [remote/branch]
git remote add origin 仓库地址
git push origin 分支
git checkout -b name
git branch
git branch name
git checkout name
git merge name
git branch -d name
git tag
git tag [tag]
git tag [tag] [commit]
git tag -d [tag]
git push origin:refs/tags/[tagName]
git show [tag]
git push [remote] [tag]
git push [remote] --tags
git checkout -b [branch] [tag]
git status
git diff
git log
git log --stat
git log -S [keyword]
git log [tag] HEAD --pretty=format:%s
git log [tag] HEAD --grep feature
git log --follow [file]
git whatchanged [file]
git log -p [file]
git log -5 -pretty --oneline
git shortlog -sn
git blame [file]
git diff
git diff --cached [file]
git diff HEAD
git diff [first-branch]……[last-branch]
git diff --shortstat "@{0 day ago}"
git show [commit]
git show --name-only [commit]
git show [commit]:[filename]
git reflog
git fetch [remote]
git remote -v
git remote show [remote]
git remote add [shortname] [url]
git pull [remote] [branch]
git push [remote] [branch]
git push [remote] --force
git push [remote] --all
git checkout [file]
git checkout [commit] [file]
git checkout .
git reset [file]
git reset --hard HEAD^
git rest --hard HEAD~
git reset --hard 版本号
git reset [commit]
git reset --hard [commit]
git reset --keep [commit]
git revert [commit]
ssh-kengen -t rsa -C "邮箱"
git stash
git stash pop
git配置
$ git config --list
$ git config user.name
$ git config user.password
$ git config user.email
$ git config user.name "freedom"
$ git config user.password "123456"
$ git config user.email "1548429568@qq.com"
$ git config --global user.name 用户命
$ git config --global user.name freedom
$ git config --global user.password 密码
$ git config --global user.password abc0506abc
$ git config --global user.password 邮箱
$ git config --global user.email "1548429568@qq.com"
$ git config user.name "freedom"
$ git config --global user.name "freedom"