1.记住用户名和密码(不用每次都输入)
a.git config --global credential.helper store
b.git config --global credential.helper 'cache --timeout=86400'(记住一天)
2.设置快捷方式(类似于 svn ci ,svn up)
git config --global -e(打开编辑界面)
贴入以下字段:
[alias]
co = checkout
ci = commit
st = status
pl = pull
ps = push
dt = difftool
l = log --stat
cp = cherry-pick
ca = commit -a
b = branch
或者:git config --global alias.co checkout ......
设置完成之后就可以用 git ca 等命令了