diff --git a/README.md b/README.md index 7d46cdb..4b6f118 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Find common ancestor of two branches](#find-common-ancestor-of-two-branches) * [List unpushed git commits](#list-unpushed-git-commits) * [Add everything, but whitespace changes](#add-everything-but-whitespace-changes) +* [Edit [local/global] git config](#edit-localglobal-git-config) @@ -1002,5 +1003,10 @@ git cherry -v git diff --ignore-all-space | git apply --cached ``` +## Edit [local/global] git config +```sh +git config [--global] --edit +``` + diff --git a/tips.json b/tips.json index fcd7e7c..e508888 100644 --- a/tips.json +++ b/tips.json @@ -428,4 +428,7 @@ }, { "title": "Add everything, but whitespace changes", "tip": "git diff --ignore-all-space | git apply --cached" +}, { + "title": "Edit [local/global] git config", + "tip": "git config [--global] --edit" }] \ No newline at end of file