2017-12-06 11 views
0

私は古いブランチ201を使用していましたが、ローカルとリモートの両方で削除しました。警告:ブランチには複数の値があり、プルにも失敗します

私は201-meと呼ばれるローカルブランチを持っています。私はそれをローカルで名前を変更しようとしましたが、名前を201-meに再度変更しました。

しかし、今、私は201-私に上流にそれを設定することはできません、私が取得:

company/app/app-api 201-me ✔                                             2h5m ⍉ 
▶ git branch --set-upstream-to=origin/201-me 
warning: branch.201-me.remote has multiple values 
warning: branch.201-me.merge has multiple values 
Branch 201-me set up to track remote branch 201-me from origin. 

company/app/app-api 201-me ✔                                             2h6m 
▶ git pull 
Your configuration specifies to merge with the ref 'refs/heads/201' 
from the remote, but no such ref was fetched. 

▶ git branch -vv 
* 201-me ef4632c [origin/201: ahead 10, behind 1] 

company/app/app-api 201-me ✔                                             2h13m 
▶ git pull 
remote: Counting objects: 10, done. 
remote: Compressing objects: 100% (2/2), done. 
remote: Total 10 (delta 8), reused 10 (delta 8), pack-reused 0 
Unpacking objects: 100% (10/10), done. 
Your configuration specifies to merge with the ref 'refs/heads/201' 
from the remote, but no such ref was fetched. 
+0

テキストエディタで '' .git/config''を見たことがありますか?面白いことを見つけて手動で編集するかどうかを確認してください。 – codeape

答えて

0

うん、私は./git/configで2つのエントリーしていた:

[branch "201-me"] 
    remote = origin 
    merge = refs/heads/201 

[branch "201-me"] 
    remote = origin 
    merge = refs/heads/201 

はとても削除

[branch "201-me"] 
    remote = origin 
    merge = refs/heads/201-me 
+0

興味深い。何が、追加のエントリを作成したのだろうか? – torek

関連する問題