Skip to main content

Git

Git​

设置​

设置签名​

全局设置

git config --global user.email "xxxx@xxxx.com"
git config --global user.name "xxx"

单个项目设置

git config user.email "xxxx@xxxx.com"
git config user.name "xxx"
设置 vim 作为默认编辑器​
git config --global core.editor "vim"

开发​

同步fork代码​

指南Syncing a fork - GitHub Docs

gh repo sync owner/cli-fork
在任意分支让 master 和 remote 同步​
git fetch origin master:master

Github​