Add tips for changing git terminal output color settings

This commit is contained in:
andela-djames 2016-06-13 15:00:11 +01:00
parent 1cf1673f05
commit 223f430e1e
2 changed files with 18 additions and 0 deletions

View File

@ -111,6 +111,8 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Clone a single branch](#clone-a-single-branch)
* [Create and switch new branch](#create-and-switch-new-branch)
* [Ignore file mode changes on commits](#ignore-file-mode-changes-on-commits)
* [Turn off git colored terminal output](#turn-off-git-colored-terminal-output)
* [specific color settings](#specific-color-settings)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -751,5 +753,15 @@ git checkout -b <branch-name>
git config core.fileMode false
```
## Turn off git colored terminal output
```sh
git config --global color.ui false
```
## specific color settings
```sh
git config --global <specific command e.g branch, diff> <true, false or always>
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

View File

@ -333,4 +333,10 @@
},{
"title": "Ignore file mode changes on commits",
"tip": "git config core.fileMode false"
},{
"title": "Turn off git colored terminal output",
"tip": "git config --global color.ui false"
},{
"title": "specific color settings",
"tip": "git config --global <specific command e.g branch, diff> <true, false or always>"
}]