1,进入根目录
$ cd
2 查看根目录下面的文件
ls -la
3,编辑.gitconfig
$ vi .gitconfig
[alias]
co = checkout
ci = commit
st = status
pl = pull
ps = push
dt = difftool
l = log --stat
cp = cherry-pick
ca = commit -a
b = branch
转自:http://blog.csdn.net/iosdevtip/article/details/46424595