随便打开个终端,输入:
git config --global --edit
然后按照如下格式填写:
[pull]
rebase = true
[url "ssh://1030xxxx@gerrit.zte.com.cn"]
pushInsteadOf = ssh://1030xxxx@gerritro.xxx.com.cn
[user]
name = 风清扬
email = fengqingyang@163.com.cn
[core]
longpaths = true
autocrlf = input
filemode = false
[alias]
st = status
df = diff
cm = commit
co = checkout
br = branch
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
psv3 = push origin HEAD:refs/for/master_dev%r=fengqingyang@163.com.cn,sange@163.com.cn
[colore]
ui = true