![]() ![]() ![]() Instead of posting a comment, please go directly to and open a new pull request with your changes. If you've found a typo, a sentence that could be improved or anything else that should be updated on this blog post, you can access it through a git repository and make a pull request. What do you use as your default text editor? Comment below! The process for changing the default to other text editor is basically the same, it's just a matter of finding the correct key word(s) for launching the editor. We do that by specifying code -wait, which basically says "Hey git, I'm gonna go over to VS Code to edit that file now, just hang about, and once I've closed that file you can read it and finish processing the command". ![]() Note that changing the editor to code didn't work quite as we wanted it to - because we're leaving the terminal environment in order to go and edit the file in VS Code, we need to tell git to wait for us. What if you want to change the editor used by git to something external to the terminal, like VS Code? Here's how: This can be very confusing for people, as Vim is not an. As you can see, nano is much more straight forward than vim (not least because it gives you the commands you need at the bottom of the screen!), but it still exists completely in the terminal (which has pros and cons). When you create a Git commit with git commit a, the default editor that will be opened is Vim.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |