4

I am new to Git and trying to lean the revert command. After reverting a specific commit the following screen appears. As per tutorials Crtl-X not working. What should I do??

pic Result

isherwood
  • 58,414
  • 16
  • 114
  • 157
Faisal Mohammad
  • 427
  • 1
  • 9
  • 27
  • FYI, a revert is just another commit. You're simply committing the inverse of the previous commit. – isherwood Aug 13 '19 at 18:22
  • You should write a comment or bug to the author of the tutorial--they assumed that your system editor was nano when it could very well be vim (as mentioned here). The author probably had a configuration where nano was their editor without realizing that this wasn't universal. – nanofarad Aug 13 '19 at 18:31
  • https://stackoverflow.com/search?q=%5Bgit%5D+exit+vim – phd Aug 13 '19 at 18:31

1 Answers1

6

I think you're asking how to exit edit mode in Git Bash. Type colon (:), then enter wq for "write, quit".

isherwood
  • 58,414
  • 16
  • 114
  • 157