0%

git 学习与使用

git使用技巧

优化设置

在git bash下查看状态中文文件名全部显示为数字

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: package-lock.json
modified: source/_posts/Java/spring/springmvc-study.md
new file: source/_posts/Java/spring/springmvc-study/640.webp
modified: "source/_posts/ide/idea-\344\275\277\347\224\250\346\212\200\345\267\247.md"
new file: "source/_posts/ide/idea-\345\220\257\345\212\250tmocat\344\270\255\346\226\207\344\271\261\347\240\201.md"
new file: "source/_posts/ide/idea-\345\220\257\345\212\250tmocat\344\270\255\346\226\207\344\271\261\347\240\201/image-20210830103308331.png"
new file: "source/_posts/ide/idea-\345\220\257\345\212\250tmocat\344\270\255\346\226\207\344\271\261\347\240\201/image-20210830103410729.png"

使用git config --global core.quotepath false