1. 安装 msysgit:

msysgit

2. 配置用户信息和 alias

gitconfig

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[user]
    name = zhixin
    email = wenzhixin2010@gmail.com
[alias]
    co = checkout
    ci = commit -a
    st = status
    br = branch
    oneline = log --pretty=oneline --since='2 days ago'
    onelog = log -p -1