I am following along in a video on treehouse, and in the my_really_cool_projects folder we are using git commit for the first time.
In the video, they use git commit and it opens up in nano. On my mac, it opens in VIM. I can't figure out what to do next? I don't know the vim shortcut for Save.
At any rate, I'd like to be able to open git commit in nano so I can follow the tutorials.
In addition to this, I now have a different problem in that if I try to run git commit again, I get:
Swap file ".git/.COMMIT_EDITMSG.swp" already exists!
Can someone help me get back on track?
rm -f .git/.COMMIT_EDITMSG.swp. In order to save in vi/vim, you can say:w,:wqor:x.git commithas taken you to Vim, you didn't manage to google a solution to how to save and exit vi / Vim?! google.com/?q=git+change+commit+editor will tell you how to change the editor. But don't get me wrong: First steps are hard, and welcome to Git (and maybe later, Vim, too?) Both are powerful tools!