I am a contributor in a Git repository where we are trying to share and work on a Visual Studio project, and I am using the Git extension to interface it to Git. I have added some files to the project and from the extension and there is an incoming commit. When I try to push my commit under outgoing commit, this error pops up:
Translation it is not possible to push branch master to the repository origin because there are new commits on the remote. It is not possible to perform a fast-forward merge with the branch on the remote repository.
How can i fix it?
If my wife's translation of the Italian is correct then the problem is that you have incoming commits from the remote repository and that you need to perform a Pull (& Merge) before you can Push your changes to the remote.
Alternatively you could perform a Fetch and then rebase your local changes on top of origin/master.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.