git配置
我的 linux虚拟机git配置如下,感觉挺好用的
1 设置alias别名,简化日常使用的命令,例如git checkout,输入git co即可,提升工作效率
2 设置密码缓存,避免每次提交代码都输入账号密码,–timeout 7200表示缓存密码2小时,配置后输入密码一次,2小时内git push不会再次询问密码
[alias]
co = checkout
br = branch
st = status
ci = commit
dt = difftool
[user]
name = xxx
email = xxx
[credential]
helper = cache --timeout 7200