在不同git 项目下使用不同的用户名/邮箱( use different git username/emails in different projects)

访问量: 1444

很简单,就是在每个git repo下,都修改 .git/config, 加上 user 这一段:

# 加上这个 [user] 
[user]
	email = shensiwei@happysoft.cc
	name = 大师
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin"]
	url = git@github.com:happy-software/happystock_titanium.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master

订阅/RSS Feed

Subscribe

分类/category