Skip to content

Commit ed274f1

Browse files
committed
Add the Troubleshooting section
- move tips in this - add about ANSI color problem
1 parent bfd0443 commit ed274f1

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ $ git-commander
3131
- **blessed** >= 0.1.7
3232
- **lodash** >= 3.0
3333

34-
# Tips
35-
36-
If you use non-ascii character for source files, You need to disable
37-
the **core.quotepath** option using following command:
38-
39-
```bash
40-
$ git config --global core.quotepath false
41-
```
42-
4334
# Key Configuration
4435

4536
We have two key sets _vi_ and _mc_ preconfigured. The default one is _vi_.
@@ -73,6 +64,30 @@ You also can redefine keys one by one if you would like. You'll need to extend y
7364

7465
You can find [default settings here](https://github.com/golbin/git-commander/tree/master/config/key).
7566

67+
# Troubleshootings
68+
69+
## ANSI color codes are displayed
70+
71+
ANSI color codes are being displayed if you set "always" for color settings in your **.gitconfig**. For fixing this, set "auto" for color settings like below.
72+
73+
```
74+
[color]
75+
# diff = always
76+
diff = auto
77+
status = auto
78+
ui = auto
79+
branch = auto
80+
```
81+
82+
## Non-ascii character problem
83+
84+
If you use non-ascii character for source files, You need to disable
85+
the **core.quotepath** option using following command:
86+
87+
```bash
88+
$ git config --global core.quotepath false
89+
```
90+
7691
# License
7792

7893
MIT

0 commit comments

Comments
 (0)