Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git,而不是Mac(或Ubuntu)上某些Windows文件的阶段性更改_Git_Macos_Ubuntu - Fatal编程技术网

Git,而不是Mac(或Ubuntu)上某些Windows文件的阶段性更改

Git,而不是Mac(或Ubuntu)上某些Windows文件的阶段性更改,git,macos,ubuntu,Git,Macos,Ubuntu,我无法通过BundleUpdate更新youcompleteme 我发现问题可能是服务器回购造成的 ~/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:

我无法通过BundleUpdate更新youcompleteme

我发现问题可能是服务器回购造成的

~/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")
~/nuts/vimfiles/bundle/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer/cecil(master)$git st
论分行行长
您的分支机构是最新的“原始/主”分支机构。
未为提交而暂存的更改:
(使用“git add…”更新将提交的内容)
(使用“git签出--…”放弃工作目录中的更改)
修改:LICENSE.md
修改:Mono.Cecil.csproj
修改:Mono.Cecil.settings
修改:Mono.Cecil.sln
未向提交添加任何更改(使用“git add”和/或“git commit-a”)
在vim中,我找到了fileformat=dos的修改文件,而“git dt LICENSE.md”与difftool vimdiff没有任何区别

我尝试了dos2uinx和unix2dos,但没有放弃这些更改的帮助

“git co——”无法放弃这些更改

“git reset--hard”不能放弃这些更改

那么如何放弃这些更改呢?

git reset——硬的

据我所知,LICENSE.md应该有所更改。事实上,根据我的经验,difftools只有在您确实存在差异的情况下才会出现,如果您没有差异,它们甚至还没有发布。你确定你没有注意到他们吗