我正在两个不同的机器上的主分支上工作,并将代码推送到其中一台机器上的远程存储库。如何判断自上次git pull或git push以来我更改过的git pull会覆盖哪些文件?
我试图把代码从其他机器远程回购,但我得到的错误
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again. See the
'Note about fast-forwards' section of 'git push --help' for details.
我打算做一个$ git pull
而是想知道是否有一种方法,我可以告诉哪些文件会被写入,因为从远程回购的最后一个git或从远程回购的git推送,我已经对本地进行了更改。
我对修改文件的完整列表不感兴趣。
你想,无论你和远程对这个分支修改的文件列表? –
是准确,感谢澄清 – user784637
要在这里接受的答案帮助吗? http://stackoverflow.com/questions/9113280/diff-current-working-copy-of-a-file-with-another-branchs-committed-copy我可能有误解。 – Chris