Git
全局配置
git config --global <global-name> <global-value>
git config -l # 查看git的全局配置信息git config --global user.name litreily
git config --global user.email litreily@outlook.com
git config --global core.editor vim
git config --global http.proxy http://127.0.0.1:3128
git config --global https.proxy http://127.0.0.1:3128git config --global credential.helper store生成秘钥
cd
ssh-keygen
cat .ssh/id_rsa.pub远程操作
git remote
git clone
常用指令
git add
git rm
git mv
git commit
git push/pull/fetch
git log
git reflog
git status
git blame
git tag
合并
git merge
git rebase
git cherry-pick
暂存
git stash
添加子模块
git submodule add
撤销操作
git reset
git revert
补丁操作
git format-patch
git am
git send-email
其它指令
gitk
tig
Last updated