I’m having some issues with a project using Git I’m working on. I'm using a non-bare repository for that.
After committing some local changes, when I run:
git status
I get:
Your branch is ahead of ‘origin/master’ by 1 commit.
Nothing wrong with that. But when trying to push local committed changes to a remote repository with:
git push origin master
And I’m having the next error message:
Branch master -> FETCH_HEAD Error: Your local changes to the following files would be overwritten by merge. Please, commit your changes or stash them before you can merge. Aborting
When I run
git status
after that I get:
Your branch is up-to-date with ‘origin/master’
However, when I take a look at my remote repository, those changes weren’t really pulled.
Many people have had the same issue but it was always after a pull request never, which seems to make a bit more sense, never after a push. Also, I have no commits to make.