2015-03-02 167 views

回答

1

有店:

  • 在git的安裝文件夾本身(<git>\etc\gitconfig):系統配置
  • %HOME%\.gitconfig(全局配置),和id您正在使用git-cmd.batHOME設置爲%USER_PROFILE%
  • (.git/config)

請注意,您需要定義core.autoc你自己,因爲<git>\etc\gitconfig定義它默認爲true。

git config --global core.autocrlf false 

(同時有cases where core.autocrlf can help,我更喜歡將它設置爲false,並working with .gitattributes core.eol directives

0

嘗試使用運行在「混帳打擊」 echo $HOME,它應該給你的home目錄(這可能是你正在尋找)。