I was trying to commit on git, but it showed an error message as screenshot displayed below "error: Committing is not possible because you have unmerged files." Error shown after git commit
So I checked the git status, where as it responds as following: git status
I've tried some solutions such as git stash as someone suggested online, but seems not working.
How can I successfully commit my file?
P.S. this is a Coursera course submission if you need more detail about the commit background, but I guess makes no differences.
Maybe you executed the command
git pull
before this.Run the
git merge --abort
as suggested in the messagegit status
, after this you commit the changes.