Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.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加上`不';t在Windows上添加要跟踪的文件_Windows_Git - Fatal编程技术网

`git加上`不';t在Windows上添加要跟踪的文件

`git加上`不';t在Windows上添加要跟踪的文件,windows,git,Windows,Git,我有一个本地文件夹,我想将其转换为Git存储库,然后推送到远程存储库。我在项目文件夹中运行命令git init,然后使用命令git add.。当我运行命令git status时,我会收到一条消息,表明我有未跟踪的文件。我多次运行了git add.命令,但看到了相同的消息 我应该做些什么来跟踪这些文件,以便推送到远程回购 我正在使用Windows 8.1 x64计算机 更新:请看下面的答案 我使用命令git config--system core.longpaths true修复了较长文件名的错误

我有一个本地文件夹,我想将其转换为Git存储库,然后推送到远程存储库。我在项目文件夹中运行命令
git init
,然后使用命令
git add.
。当我运行命令
git status
时,我会收到一条消息,表明我有未跟踪的文件。我多次运行了
git add.
命令,但看到了相同的消息

我应该做些什么来跟踪这些文件,以便推送到远程回购

我正在使用Windows 8.1 x64计算机

更新:请看下面的答案


我使用命令git config--system core.longpaths true修复了较长文件名的错误。在进行更改后,我可以添加所有文件。

尝试使用git add时会得到什么输出。?另外,您正在使用msysgit吗?
git是否添加CHANGELOG.md
更改状态?我看到很多警告,例如“文件将在您的工作目录中有其原始行结尾。”。警告:在node_modules/express beautify/node_modules/js beautify/node_modules/nopt/node_mo modules/abbrev/test.js中,LF将被CRLF替换。“我看到一个错误”致命:无法统计“node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/anymatch/node_modu”les/micromatch/node_模块/支架/node_模块/扩展范围/node_模块/填充范围/node_模块/重复字符串/包。json“:文件名太长”在出现错误时停止。所有其他都是警告。您应该将其编辑到问题中,并提及您安装的
git
的哪个发行版。(请记住,StackOverflow不仅是一个获取答案的地方,也是一个问题和答案的存档。)