Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of garbled codes in linux git

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report