2017-11-27 13 views
0

私は窓で作業しています。git statusコミットすることは何も言わず、ブランチを切り替えることはできません

PS G:\Solid\WebPortals> git status 

On branch pos-event-waiver 
nothing to commit, working tree clean 
PS G:\Solid\WebPortals> git checkout pos-exchange-bill 
error: Your local changes to the following files would be overwritten by checkout: 
     Site/WebPortals/assets/typescript/pos/cart/waiver.component.ts 
Please commit your changes or stash them before you switch branches. 
Aborting 

enter image description here

+0

これらの2つのブランチの一方または両方で.tsファイルが無視されますか? –

+0

返信いただきありがとうございます。この[link](https://stackoverflow.com/questions/2016404/git-status-shows-modifications-git-checkout-file-doesnt-remove-them/)に記載されているように、私はすでにこの問題を修正しました。 2016426) – Route2Me

+0

申し訳ありませんが、それぞれの質問はそれぞれ独立した立場に立つ必要があります。 –

答えて

0

あなたのローカルブランチのPOS-イベント放棄は、リモートブランチを追跡するよう設定されていない可能性が高いです。このトラックマスターブランチを修正するには、ん:必要に応じて、

git branch --set-upstream-to origin/master

は、あなたの現在のブランチのステータスを取得するために、今git statusを試してみて、あなたの変更をコミットするか、隠しておくことができます。

+0

返信ありがとうございます。この[link](https://stackoverflow.com/questions/2016404/git-status-shows-modifications-git-checkout-file-doesnt-remove-them/)に記載されているように、この問題は既に修正済みです。 2016426) – Route2Me

関連する問題