Reputation: 31
I was attempting to commit some project changes in git bash. When I entered
git commit -m"my message"
I get the error
Aborting commit due to empty commit message.
I tried the solution from this post but I still get the same error.
What confuses me is that I wasn't having this problem before. The git commit -m"message"
was working fine on device #1. The next day, I worked on device #2 and the commit command was working. On the same day, I also work on device #3, no problems with the commit command. When I come back to device #1, I am no longer able to commit any changes due to the abort message.
Hope this explains it more. Thank you in advance.
Upvotes: 2
Views: 313
Reputation: 31
After the mention of corrupted files, I figured out OneDrive was the problem.
Not all my folders/files were syncing or loading to my pc from OneDrive. I copied the folder to a physical drive and was able to commit my changes.
Thanks for the help!
Upvotes: 1