これでコンテキストを与えるのはちょっと歴史があります。ブランチをローカルで削除した後にgit fetchが機能しない
ローカルブランチでリベース/リセットを実行し、origin
にプッシュしました。
は今、テストサーバーまで変更をプルするための時間だった:
git pull (or git pull --force, etc)
は私にこのメッセージ(複数可)を与えて、動作しませんでした。
[email protected]:~/test.myserver.com$ git pull
remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
From github.com:ykgw/myrepository
+ 6ef07eb...9883f8a feature/558-add-preview-button -> origin/feature/558-add-preview-button (forced update)
Auto-merging app/api/NodesController.php
CONFLICT (content): Merge conflict in app/api/NodesController.php
Automatic merge failed; fix conflicts and then commit the result.
[email protected]:~/test.myserver.com$ git checkout master
app/api/NodesController.php: needs merge
error: you need to resolve your current index first
[email protected]:~/test.myserver.com$ git pull --force
U app/api/NodesController.php
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
私は最終的にマスターに切り替えて、問題のブランチを削除することができましたが、その後git fetch
は私がきれいにプルダウンしたかった枝を示しませんでした。テストサーバーがレポで再認識できるようにするにはどうすればよいですか?
そのファイルを調べて競合がないか調べ、解決してコミットします。その後、再度引っ張ることができます –
指示は、下部にあります。 'ファイルの結合を解除したため、プルできません。作業ツリーでそれらを修正し、 'git add/rm'を使用して解像度をマークするか、 'git commit -a'を使用してください。しかし、それ以降は何かをして、それを見せていないように思えます。 –
Schwern