Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRobbie Baker
7,736 PointsGit revert error
I used Notepad ++ as my Git Editor and it gave the following error:
"hint: Waiting for your editor to close the file... C:\Program Files\Notepad++.exe: C:Program: command not found error: There was a problem with the editor 'C:\Program Files\Notepad++.exe'. Please supply the message using either -m or -F option."
Can someone help me figure out what i need to do to be able to use this command with Git Revert please?
1 Answer
Jamie Reardon
Treehouse Project ReviewerI believe it's throwing this error due to your editor not having a default terminal editor like nano.
It's hinting to you that you can atlernatively use the command option -m to provide a message for the commit rather than open an editor window for it.
So all you need to do is run the command again and pass the option -m followed by a message.