git show file encoding gbk abnormal

My git repo's file encoding is gbk, and I use git in Cygwin. When I use git show or git diff, comments in file show abnormal.

How can I configure git.

Answers


Instead of using git diff you can use git-diff-tree

git show --encoding / git diff-tree --encoding

--encoding[=<encoding>]

The commit objects record the encoding used for the log message in their encoding header;

this option can be used to tell the command to re-code the commit log message in the encoding preferred by the user. For non plumbing commands this defaults to UTF-8.


Need Your Help

Parsing fasta file with biopython to count number sequence reads belonging to each ID

python parsing biopython fasta

I am new to python programming and attempting to parse a fasta file and count the number of reads belonging to each ID in the file (working with toy example here but, plan to use for metagenomic seq

Processing badly formed HTML files with XPATH

python xml xpath elementtree

I inherited someone elses (dreadful) codebase, and am currently desperately trying to fix things. Today, that means gathering a list of all the dead links in our template/homepage.