2016-05-11 13 views
1

私は全くのgitの専門家ではありません。私のローカルのgit repoは悪い方法です。 私は2つの枝マスターとDericheを持っています。ブランチを切り替えることができません

$git diff 
diff --git a/modules/ximgproc/src/deriche_filter.cpp b/modules/ximgproc/src/deriche_filter.cpp 
index 0e45ffb..58d20ca 100644 
--- a/modules/ximgproc/src/deriche_filter.cpp 
+++ b/modules/ximgproc/src/deriche_filter.cpp 
@@ -1,464 +1,464 @@ 
-<U+FEFF>#include "precomp.hpp" 
-#include "opencv2/highgui.hpp" 
...... 
:そして、gitのdiffの結果がある再び

$ git stash 
Saved working directory and index state WIP on Deriche: 64025bc Add files via upload 
HEAD is now at 64025bc Add files via upload 

その後、
$ git checkout master 
error: Your local changes to the following files would be overwritten by checkout: 
     modules/ximgproc/src/deriche_filter.cpp 
Please, commit your changes or stash them before you can switch branches. 
Aborting 

を私はローカルブランチDeriche枝に今仕事と私はマスター

$ git checkout master 
error: Your local changes to the following files would be overwritten by checkout: 
     modules/ximgproc/src/deriche_filter.cpp Please, commit your changes or stash them before you can switch branches. Aborting 

を切り替えたいです

私は試しましたthis成功なし。あなたの助け

+0

を試し 'gitのは何を示してdiff'のでしょうか? –

+0

私は更新の質問がありますあなたの興味のためにありがとう – LBerger

答えて

2

を事前に

おかげで、あなたをその<U+FEFF>文字で行うにはおそらく何か。 (これは、Unicode文字Unicode Character 'ZERO WIDTH NO-BREAK SPACE'のテキスト表現です。)

言われていること、git stashgit reset --hardが動作しない場合は、

git checkout HEAD~0 
git add modules/ximgproc/src/deriche_filter.cpp 
git commit -m Trash 
+0

ありがとう。私はこの文字列の起源を調べなければならないでしょう – LBerger

関連する問題