zoukankan      html  css  js  c++  java
  • GIT 初始化 中文编码、自动换行

    解决中文编码:

    git config --global core.quotepath false

    git config --global gui.encoding utf-8

    解决git log 中文乱码:

    git config --global i18n.commitencoding utf-8

    git config --global i18n.logoutputencoding utf-8

    export LESSCHARSET=utf-8

     

    解决自动换行:

    git config --global core.autocrlf false

     

    以下是简短说明:

    git config --global core.quotepath false

    cygwin中,git add时,显示274232350256256346200273347273223.png的乱码。

    git config --global gui.encoding utf-8

    git gui的界面编码

     

     

    git config --global i18n.commitencoding utf-8

     commit log 提交时使用 utf-8 编码,可避免服务器上乱码,同时与linux上的提交保持一致!

     

    lls --show-control-chars

    MsysGit自带的bash,使用ls命令查看,中文文件名乱码。

     

    git config --global core.autocrlf false

    windows使用git时出现 warning LF will be replaced by CRLF

     

     

     

     

     

     

     

     

     

  • 相关阅读:
    POJ 1315 Don't Get Rooked
    POJ 2051 Argus
    POJ 1942 Paths on a Grid
    POJ 2151 Check the difficulty of problems
    POJ 3349 Snowflake Snow Snowflakes
    POJ 1753 Flip Game
    POJ 2392 Space Elevator
    POJ 2385 Apple Catching
    POJ 2356 Find a multiple
    POJ 2355 Railway tickets
  • 原文地址:https://www.cnblogs.com/dmc-nero/p/9572824.html
Copyright © 2011-2022 走看看