mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Add tips for changing git terminal output color settings
This commit is contained in:
parent
1cf1673f05
commit
223f430e1e
12
README.md
12
README.md
|
@ -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)
|
||||
|
||||
<!-- 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 -->
|
||||
|
@ -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>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
|
@ -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>"
|
||||
}]
|
||||
|
|
Loading…
Reference in New Issue
Block a user