2016-07-08 1 views
1

私はgitのgitで複数のメールを削除するには?

警告でこのエラーを取得しておいてください。私も

をチェックuser.emailが複数の値

を持って、私は私のuser.mailをチェック

git config --get-all user.mail 
[email protected] 
[email protected] 
[email protected] 

git config -e 

とこれはファイルです:

[core] 
    repositoryformatversion = 0 
    filemode = false 
    bare = false 
    logallrefupdates = true 
    symlinks = false 
    ignorecase = true 
    hideDotFiles = dotGitOnly 
[remote "origin"] 
    url = https://github.com/cloudy/coding.git 
    fetch = +refs/heads/*:refs/remotes/origin/* 
[branch "master"] 
    remote = origin 
    merge = refs/heads/master 
[branch "resolutions"] 
    remote = origin 
    merge = refs/heads/resolutions 

私のローカル環境にはリポジトリがありません。私は1つしか持っていない。

+1

'gitの設定--global --edit' –

答えて

0

あなたが(代わりに手動で編集の)とそれらを削除することができます。user.mailの最初の2つのエントリを削除します

git config --global --unset user.mail 
git config --global --unset user.mail 

。その後

で余分な電子メールをチェックしてください。

git config --get-all user.email   # (local repo git config file) 
git config --global --get-all user.email # (user config file) 
git config --system --get-all user.email # (system git config file) 
関連する問題