在推送过程中发生了以下错误。
git.exe push "origin" master:master
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'non-fast forward'
section of 'git push --help' for details.
To //oht-fsv1/Source/Git/Test
! [rejected] master -> master (non-fast forward)
有什么问题吗?
git checkout -- filename
命令:它实际上是一种覆盖(而不是合并)更改的操作。在您的情况下,使用git pull --rebase
命令会更安全。 - VonCgit pull
显示“已经是最新的”,而git push
也出现了同样的问题,那么我现在面临的就是这个情况。 - Adil