Skip to content

Instantly share code, notes, and snippets.

解决 Git 在 windows 下中文乱码的问题

原因

中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。

解决方案

  1. 安装

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@xiaochun-z
xiaochun-z / .rtorrent.rc
Last active May 14, 2017 08:59 — forked from wangyan/.rtorrent.rc
This is an Chinese example resource file for rTorrent.
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# 每个种子所允许的最小最大连接数
#min_peers = 40
#max_peers = 100
# 同上,但仅针对已完成的种子(-1 表示与下载中的种子一致)
#min_peers_seed = 10
@xiaochun-z
xiaochun-z / rtorrent.sh
Last active May 14, 2017 08:34 — forked from wangyan/rtorrent.sh
rtorrent satart shell script
#!/bin/sh
case "$1" in
start)
echo -n "Starting rtorrent"
su - root -c "screen -A -m -d -S rtorrent /usr/bin/rtorrent" &
echo "."
;;
stop)
echo -n "Stopping rtorrent"