2016-09-23 12 views
1

私はVisual Studio 2015を使用していますが、私はVisual Studio Team Servicesのgit repo(VS Studio Online)でVS Projectを持っています。同時着信コミットがあるときにgit repoを同期

私は(同時に)、着信コミットおよび発信コミットをしていたびに、私はプルリクエストを行った場合、私はエラーメッセージが表示されます。

Cannot pull because there are uncommitted changes. Commit or undo your changes before pulling again. See the Output window for details.

私はコミットを実行しようとした場合、私は次のエラーを取得します:

You cannot push branch develop to remote origin because there are new commits in the remote repository’s branch. Pushing this branch would result in a non-fast-forward update on the branch in the remote repository.

だから私は、壁にぶつかると私は似たような状況を持って立ち往生毎回取得:

State of Team Explorer when i have issues

Unable to pull

Unable to push

私は、コマンドラインを試みたが、今のところ、それは私が(主に起因するのgitの経験の私の不足のために)仕事を失いました。

Visual Studioでもこれを解決する方法はありますか? そうでない場合、このような状況ではどのような方法が最適ですか?

答えて

0

ローカルリポジトリに変更をコミットしてから、リモートから変更を取得する必要があります。マージ/競合解決を実行すると、変更内容をプッシュすることができます。

+0

このシンプルなのはとても馬鹿だ!どうもありがとうございます! –

関連する問題