Skip to content

Commit

Permalink
Link to SWC lesson on configuring git editor
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Mar 16, 2018
1 parent b34f913 commit c4d3b1f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions 08_install-introduce-self-git.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ What email should you give to Git? This __must__ be the email associated with yo

These commands return nothing. You can check that Git understood what you typed by looking at the output of `git config --global --list`.

### Configure the Git editor

Another Git option that many people eventually configure is the editor. At some point, you will fail to give Git what it wants in terms of a commit message and it will kick you into an editor. This can be distressing, if it's not your editor of choice and you don't even know how to save and quit. You can enforce your will with something along these lines:

``` bash
git config --global core.editor 'emacs'
git config --global core.editor "emacs"
```

Substitute your preferred editor for `emacs` here.
Substitute your preferred editor for `"emacs"` here. Software Carpentry's Git lesson has a comprehensive listing of the exact `git config` command needed for [many combinations of OS and editor](http://swcarpentry.github.io/git-novice/02-setup/).

0 comments on commit c4d3b1f

Please sign in to comment.