Whenever I try to revert a commit using git revert, terminal opens up the nano editor. The revert goes through, but I have to esc out of nano. Is there a way to prevent git from doing that?
On a similar note, is there a way to prevent git from forcing me to add a message whenever I commit something?
Thanks!
If you want to change the core editor check out this answer which explains how.
Making commits without a message is considered a bad practice, especially if you are pushing those commits to shared repositories. This article and this article explain why commit messages are important and some best practices for writing them.
If you still want to have empty commits then this post explains how.