Git 配置

1.Git,每个仓单独设置email和name

找到某个仓库下的.git/config文件,在后面追加user项:

[branch "master"]
    remote = origin
    merge = refs/heads/master
[branch "dev"]
    remote = origin
    merge = refs/heads/dev
[user]
    name = wangxiaobing
    email = [email protected]

查看命令:

git config user.email 

git config user.name

你可能感兴趣的:(基础知识,git,github)