Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.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错误([remote rejected]master)_Git_Visual Studio 2012_Github - Fatal编程技术网

提交新存储库时发生Git错误([remote rejected]master)

提交新存储库时发生Git错误([remote rejected]master),git,visual-studio-2012,github,Git,Visual Studio 2012,Github,我有一个项目要放在Git上。我从来没有遇到过Git的问题,但出于某种原因,它对这个项目不起作用。 我的所有项目都在共享网络驱动器上。首先,我在网络驱动器上创建了一个新的存储库,然后将该存储库克隆到我的系统上。然后将现有项目复制到Git/projectname文件夹中。当我进行提交并尝试选择所有添加的文件时,会收到一条错误消息,如下面的屏幕截图所示 仅提交工作正常,但当我尝试推送时,会收到另一条错误消息: 选择所有文件后显示错误消息: warning: LF will be repla

我有一个项目要放在Git上。我从来没有遇到过Git的问题,但出于某种原因,它对这个项目不起作用。 我的所有项目都在共享网络驱动器上。首先,我在网络驱动器上创建了一个新的存储库,然后将该存储库克隆到我的系统上。然后将现有项目复制到Git/projectname文件夹中。当我进行提交并尝试选择所有添加的文件时,会收到一条错误消息,如下面的屏幕截图所示

仅提交工作正常,但当我尝试推送时,会收到另一条错误消息:

选择所有文件后显示错误消息:

    warning: LF will be replaced by CRLF in Tool/Content/chosen.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/css/select2.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery-ui.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.accordion.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.all.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.autocomplete.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.base.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.button.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.core.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.datepicker.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.dialog.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.menu.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.progressbar.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.resizable.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.selectable.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.slider.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.spinner.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.tabs.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.theme.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/jquery.ui.tooltip.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery-ui.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.accordion.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.autocomplete.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.button.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.core.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.datepicker.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.dialog.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.menu.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.progressbar.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.resizable.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.selectable.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.slider.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.spinner.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.tabs.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.theme.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Content/themes/base/minified/jquery.ui.tooltip.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/chosen.jquery.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/jquery-2.0.3.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/jquery-2.0.3.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/jquery-ui-1.10.3.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/jquery-ui-1.10.3.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/jquery.noty.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/bottom.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/bottomCenter.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/bottomLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/bottomRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/center.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/centerLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/centerRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/inline.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/top.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/topCenter.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/topLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/layouts/topRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/promise.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/noty/themes/default.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/select2.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in Tool/Scripts/select2.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/EPPlus.3.1.3.3/EPPlus.3.1.3.3.nuspec.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/Select2.js.3.4.1.2/content/Content/css/select2.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/Select2.js.3.4.1.2/content/Scripts/select2.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/Select2.js.3.4.1.2/content/Scripts/select2.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/chosen.0.12.0/content/Content/chosen.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/chosen.jquery.0.12.0/content/Scripts/chosen.jquery.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.2.0.3/Content/Scripts/jquery-2.0.3.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.2.0.3/Content/Scripts/jquery-2.0.3.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.2.0.3/jQuery.2.0.3.nuspec.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery-ui.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.accordion.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.all.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.autocomplete.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.base.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.button.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.core.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.datepicker.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.dialog.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.menu.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.progressbar.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.resizable.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.selectable.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.slider.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.spinner.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.tabs.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.theme.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/jquery.ui.tooltip.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery-ui.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.accordion.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.autocomplete.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.button.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.core.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.datepicker.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.dialog.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.menu.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.progressbar.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.resizable.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.selectable.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.slider.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.spinner.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.tabs.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.theme.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Content/themes/base/minified/jquery.ui.tooltip.min.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Scripts/jquery-ui-1.10.3.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/Content/Scripts/jquery-ui-1.10.3.min.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jQuery.UI.Combined.1.10.3/jQuery.UI.Combined.1.10.3.nuspec.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/jquery.noty.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/bottom.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/bottomCenter.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/bottomLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/bottomRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/center.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/centerLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/centerRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/inline.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/top.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/topCenter.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/topLeft.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/layouts/topRight.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/promise.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/content/Scripts/noty/themes/default.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in packages/jquery.noty.2.1.0/jquery.noty.2.1.0.nuspec.
The file will have its original line endings in your working directory.
DoneStage 303 files
推送后出现错误消息:

"C:\Program Files (x86)\Git\bin\git.exe" push --recurse-submodules=check --progress "origin" master:master
Counting objects: 236, done.
Delta compression using up to 4 threads.
Total 236 (delta 55), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master[K
remote: error: By default, updating the current branch in a non-bare repository[K
remote: error: is denied, because it will make the index and work tree inconsistent[K
remote: error: with what you pushed, and will require 'git reset --hard' to match[K
remote: error: the work tree to HEAD.[K
remote: error: [K
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to[K
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into[K
remote: error: its current branch; however, this is not recommended unless you[K
remote: error: arranged to update its work tree to match what you pushed in some[K
remote: error: other way.[K
remote: error: [K
remote: error: To squelch this message and still keep the default behaviour, set[K
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.[K
To G:/eTemplate_tools
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to 'G:/eTemplate_tools'
Done
在我尝试第二次推后:

"C:\Program Files (x86)\Git\bin\git.exe" push --recurse-submodules=check --progress "origin" master:master
Counting objects: 236, done.
Delta compression using up to 4 threads.
Total 236 (delta 56), reused 0 (delta 0)
remote: error: unable to write sha1 filename ./objects/pack/pack-53d213811e38773414f34a05b02d1051e5609dc5.pack: Permission denied[K
remote: fatal: cannot store pack file[K
error: unpack failed: index-pack abnormal exit
To G:/eTemplate_tools
 ! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'G:/eTemplate_tools'
Done

好了,开始吧。git设置有三个明显的问题

感谢@Cupcake指出第三个

从最重要到最不重要:

  • 您尝试推送到非裸存储库。这是不推荐的,实际上是最新git版本的错误。你应该推动无担保回购。有关更多信息,请允许我在此处向您介绍:

  • 您已将
    core.autocrlf
    设置为非
    false
    的值。这会导致git根据
    core.autocrlf
    的确切值、您的环境、相关文件和以前应用的转换,尝试自动转换行尾

    有些人认为这在一些贡献者使用windows而其他人使用UNIX的情况下很有用,但在我看来,这更容易造成麻烦,因为它会以难以预测的方式意外更改文件(尤其是对于新手)而且很难追踪/沟通,因为他们在通过邮件和/或其他渠道讨论事情时很容易迷路

    git不会将所有代码转换为python,即使我告诉它我最喜欢python。很可能它不会将所有评论翻译成法语,即使我使用的是法语区域设置。它应该让我的行尾完好无损<代码>

    有关如何更改
    core.autocrlf
    的信息,请参阅,但请记住,github推荐的内容与我的不同。所以这是在讨论中,你的里程可能会有所不同

  • NuGet似乎是一种下载预打包(二进制)数据的包管理器。您正在提交此二进制数据。这不是一个很难的错误,但是@Cupcake和我预测,从长远来看,你不会感到快乐

    对于像jQuery或bootstrap这样的小东西,它可能是可以的,并且可以简化部署,同时不会给git带来负担,但是git确实不喜欢二进制blob,如果你有很多二进制blob或大二进制文件,它会变得越来越明显,在某个时候它会变得很明显,最后它会变得很糟糕。它不会崩溃,但它会吸吮并毁掉你的git体验

    您应该研究其他跟踪二进制文件的方法。有了NuGet,无论你在哪里部署/克隆你的回购协议,运行NuGet似乎都是合理的,有了二进制媒体资产(例如在游戏开发中),git的情况就更糟了


最好的问候

旁注:个人建议:停止git干扰您的文件,并将
core.autocrlf
设置为
false
。其他人可能不同意,但请读一读。你的目标是什么?你不应该推动非裸回购。谢谢你的提示,我会不顾一切地检查它@mnagel您最好回答这个问题,因为您似乎已经识别了这两个问题,第一个问题是
core.autocrlf
设置为
true
,但是所检查的文件是Unix风格的,所以Git给出了警告,第二个问题是原始海报试图推送到非裸repo。还有第三个问题,原始海报不应该尝试签入NuGet包,让NuGet包恢复管理依赖项,因为Git不适合对二进制文件进行版本控制。顺便说一句,我会投票支持你的答案。@Cupcake和所有人:完成