mirror of https://github.com/namibia/tips.git
edit git config
This commit is contained in:
parent
318484a77f
commit
6886c2c8f6
|
@ -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)
|
* [Find common ancestor of two branches](#find-common-ancestor-of-two-branches)
|
||||||
* [List unpushed git commits](#list-unpushed-git-commits)
|
* [List unpushed git commits](#list-unpushed-git-commits)
|
||||||
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
|
* [Add everything, but whitespace changes](#add-everything-but-whitespace-changes)
|
||||||
|
* [Edit [local/global] git config](#edit-localglobal-git-config)
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end toc -->
|
<!-- @doxie.inject end toc -->
|
||||||
|
@ -1002,5 +1003,10 @@ git cherry -v
|
||||||
git diff --ignore-all-space | git apply --cached
|
git diff --ignore-all-space | git apply --cached
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Edit [local/global] git config
|
||||||
|
```sh
|
||||||
|
git config [--global] --edit
|
||||||
|
```
|
||||||
|
|
||||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||||
<!-- @doxie.inject end -->
|
<!-- @doxie.inject end -->
|
||||||
|
|
|
@ -428,4 +428,7 @@
|
||||||
}, {
|
}, {
|
||||||
"title": "Add everything, but whitespace changes",
|
"title": "Add everything, but whitespace changes",
|
||||||
"tip": "git diff --ignore-all-space | git apply --cached"
|
"tip": "git diff --ignore-all-space | git apply --cached"
|
||||||
|
}, {
|
||||||
|
"title": "Edit [local/global] git config",
|
||||||
|
"tip": "git config [--global] --edit"
|
||||||
}]
|
}]
|
Loading…
Reference in New Issue