How to solve the problem of garbled codes in linux git
Editor to share with you how to solve the problem of linux git Chinese garbled code, I hope you will gain something after reading this article, let's discuss it together!
Linux git Chinese garbled solutions: 1, the implementation of the "git config-global core.quotepath false" command; 2, manually change the configuration file, edit the content is "quotepath = false".
This article operating environment: linux5.9.8 system, Git 2.30.0 Dell G3 computer.
Solve the garbled code problem of Git in Linux:
In Linux, if the file name to be submitted is in Chinese, the default git commit will display the Chinese as a string of numbers as follows:
Create mode 100644 "\ 346\ 265\ 213\ 350\ 257\ 225"
At this time, you only need to add the appropriate configuration to display normal Chinese. Execute the following command.
$git config-global core.quotepath false
Or manually change the configuration file ~ / .gitconfig, edit and add the following
[core] quotepath = false after reading this article, I believe you have a certain understanding of "how to solve the Chinese garbled problem in linux git". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!