Git 客户端配置
在用户家目录下创建全局配置文件~/.gitconfig,内容如下:
[user]
name = test
email = test@test.com
创建具体项目的Git配置文件.git/config,内容如下:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
url = ssh://git@192.168.1.10:22/test/test_project.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master