當前項目下的.git/config
//用戶配置
[user]
name = test
email = [email protected]
//記住密碼
[credential]
helper = cache --timeout 86400 //設置密碼有效時間
或者
helper = store //密碼長期有效
全局配置
git config --global key [value]
git config --list //查看配置
常用命令
git statues //查看項目狀態
git pull //將服務器文件更新到本地
git commit -a //全部提交
-m //註釋
-am
git push
git配置:https://github.com/saidyou/dotfile/blob/master/.gitconfig