[英]Git, not staged changes of some Windows files on Mac (or Ubuntu)
我無法通過 BundleUpdate 更新 youcompleteme!
我發現這可能是 OmniSharpServer repo 引起的問題。
~/nuts/vimfiles/bundle/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer/cecil (master)$ git st
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: LICENSE.md
modified: Mono.Cecil.csproj
modified: Mono.Cecil.settings
modified: Mono.Cecil.sln
no changes added to commit (use "git add" and/or "git commit -a")
在vim中,我找到了fileformat=dos的修改文件,“git dt LICENSE.md”與difftool vimdiff沒有顯示差異。
我嘗試了 dos2uinx 和 unix2dos,但沒有幫助放棄這些更改。
“git co——。” 不能丟棄那些變化。
“git reset --hard”不能丟棄這些更改。
那么如何丟棄這些變化呢?
git reset --hard
據我所知,LICENSE.md 應該有變化。 實際上,根據我的經驗,只有在您確實存在差異時才會出現difftool ,否則它們甚至不會啟動。 你確定你只是沒有注意到他們?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.