Git配置
Git的config資訊分為global system local三個級别
通常使用git配置的是global全局設定這一級别
常用的git配置指令
檢視git配置
git config --global --list
git會羅列出目前所有的global配置
設定global屬性
git config --global xxx xxx
例如設定目前的使用者名
git config --global user.name "sliver.chen"
如果是使用github 通常這幾個配置屬性就足夠了
git config --global user.name "sliver.chen"
git config --global user.email "[email protected]"
git config --globale core.editor "vim" // 設定git日志的預設編輯器為vim
git condif --global push.default "simple" // 設定git的使用方式為simple
除此之外 github還需要生成本地的ssh秘鑰添加到github網頁的配置中 網上有很多這一步的教程.