The reason for this conflict is that the branch of the remote warehouse has been modified, but you have not pulled it locally, and you have also made the changes locally, so the system does not know whether to focus on the remote warehouse or the local warehouse, so the conflict occurs.
so how to fix it?
Method one:
1. Git Stash saves local changes to the cache
2, the git pull
3. Git Stash Pop # merges local and remote changes
4. At this point, the conflict needs to be resolved manually, as shown below. Delete the marker line, and then determine which needs to be modified
5. Redo git add and git commit,git push
Read More:
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- [Git] git pull pull remote git push to remote git commit submit reject
- GitHub upload failed: git push error: failed to push some refs to exception handling
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- git push error failed to push some refs to solution
- error: src refspec master does not match any error:failed to push some refs to ‘[email protected]:xxxx
- Solve github :error: failed to push some refs to problem
- How to Fix GIT Push Error
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed
- Git push you are not allowed to upload merges
- Error: failed to push some refs to ‘xxx’
- Git Pull Failed solution
- Git uploads local IntelliJ idea project to GitHub
- Git clone appears fatal: unable to access’ https://github.com/… The solution to the problem
- [FAQ] after git merge, the push to Gerrit fails, indicating no new changes?
- error: src refspec master does not match anyerror: failed to push some refs to
- Git command line configuration and configuration file to solve clone error libressl_ connect: SSL_ ERROR_ SYSCALL in connection to github. com:443
- Git pull error: pull is not possible because you have unmerged files
- Error: SRC refspec master does not match any. error: failed to push some refs to