Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.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 pull省略了一个文件_Git_Git Pull_Git Commit_Git Status - Fatal编程技术网

git pull省略了一个文件

git pull省略了一个文件,git,git-pull,git-commit,git-status,Git,Git Pull,Git Commit,Git Status,Git表示所有内容都是最新的,但在一个节点的源树副本上缺少一个文件。在系统A上: $ ls -l abc.py xyz.py $ git add xyz.py $ git status nothing added to commit... $ git commit nothing added to commit... $ git push Everything up-to-date 在系统B上: $ git pull Already up-to-date $ ls -l abc.py

Git表示所有内容都是最新的,但在一个节点的源树副本上缺少一个文件。在系统A上:

$ ls -l
abc.py
xyz.py

$ git add xyz.py
$ git status
nothing added to commit...

$ git commit
nothing added to commit...

$ git push
Everything up-to-date
在系统B上:

$ git pull
Already up-to-date
$ ls -l
abc.py

我的问题是:系统B上的xyz.py文件发生了什么?为什么pull没有在系统B上创建它?

您是从同一个分支推/拉吗?是的,本例中只有一个分支。