Unable to Commit to git/ Fatal: Exiting because of an unresolved conflict

2.4k Views Asked by At

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.

1

There are 1 best solutions below

1
On

Maybe you executed the command git pull before this.
Run the git merge --abort as suggested in the message git status, after this you commit the changes.