From bdad5790be077c58e5e0a8c38498bb87560b592f Mon Sep 17 00:00:00 2001 From: Aditya Harsh Date: Thu, 16 Jun 2016 14:16:41 +0530 Subject: [PATCH] Add custom editor --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 1730796..e9c6062 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Always rebase instead of merge on pull.](#always-rebase-instead-of-merge-on-pull) * [List all the alias and configs.](#list-all-the-alias-and-configs) * [Make git case sensitive.](#make-git-case-sensitive) +* [Add custom editors.](#add-custom-editors) * [Auto correct typos.](#auto-correct-typos) * [Check if the change was a part of a release.](#check-if-the-change-was-a-part-of-a-release) * [Dry run. (any command that supports dry-run flag should do.)](#dry-run-any-command-that-supports-dry-run-flag-should-do) @@ -624,6 +625,11 @@ git config --list git config --global core.ignorecase false ``` +## Add custom editors. +```sh + git config --global core.editor '$EDITOR' +``` + ## Auto correct typos. ```sh git config --global help.autocorrect 1 diff --git a/tips.json b/tips.json index 6034145..eff5643 100644 --- a/tips.json +++ b/tips.json @@ -254,6 +254,9 @@ }, { "title": "Make git case sensitive.", "tip": "git config --global core.ignorecase false" +},{ + "title": "Add custom editors.", + "tip": "git config --global core.editor '$EDITOR'" }, { "title": "Auto correct typos.", "tip": "git config --global help.autocorrect 1"