git pull省略了一个文件
Git表示所有内容都是最新的,但在一个节点的源树副本上缺少一个文件。在系统A上: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
$ 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上创建它?您是从同一个分支推/拉吗?是的,本例中只有一个分支。