我在Windows 7和Ubuntu 17.04(在带有VirtualBox的虚拟机中)中执行相同的git clone
但是我没有得到git status
的相同结果。
git status
结束后我立即git clone
。
在Windows上:
$ git status
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: server/node_modules/jQuery/README.md
modified: server/node_modules/jQuery/package.json
no changes added to commit (use "git add" and/or "git commit -a")
在Ubuntu上:
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Nothing to commit, working tree clean
现在,如果我打开server/node_modules/jQuery/package.json
,它确实是不同的。
在Windows上:缺少__dependencies和__devDependencies
{
"_args": [
[
{
"raw": "jquery",
"scope": null,
"escapedName": "jquery",
"name": "jquery",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/home/osboxes/Documents/performance"
]
],
"_from": "jquery@latest",
(...)
在Ubuntu上: __ dependencies 和 __ devDependencies 可见
{
"__dependencies": {
"jsdom": "~0.2.14",
"htmlparser": "1.7.6",
"xmlhttprequest": "~1.4.2",
"location": "0.0.1",
"navigator": "~1.0.1"
},
"__devDependencies": {
"grunt": "~0.3.8",
"nodeunit": "~0.7.4"
},
"_args": [
[
{
"raw": "jQuery",
"scope": null,
"escapedName": "jQuery",
"name": "jQuery",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/home/osboxes/Documents/performance"
]
],
"_from": "jQuery@latest",
(...)
如果我在线检查回购,它与Ubuntu版本匹配。
有关为什么在Windows中缺少完整部分文件而不在Ubuntu中的任何想法?
我见过许多有关Windows和Ubuntu文件之间的结束问题的讨论,但这似乎是另一个问题。
感谢。