Skip to content

Instantly share code, notes, and snippets.

@surya76657
Forked from nnja/config-editor.md
Created March 29, 2021 19:46
Show Gist options
  • Select an option

  • Save surya76657/232eb62144c25bf051f68c600e329a1c to your computer and use it in GitHub Desktop.

Select an option

Save surya76657/232eb62144c25bf051f68c600e329a1c to your computer and use it in GitHub Desktop.

Revisions

  1. @nnja nnja created this gist Oct 5, 2017.
    17 changes: 17 additions & 0 deletions config-editor.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    Set which editor git should use.

    This is the program that will open during a `commit` with no `-m` flag, a merge, a rebase, etc...

    Select from any installed editor.
    Examples:


    - emacs: `emacs`
    - vi: `vi` or `vim`
    - atom: `atom --wait`
    - sublime: `subl -n -w`
    - vscode: `code --wait`

    Run:
    `$ $ git config --global core.editor <YOUR_EDITOR>`