簡體   English   中英

git status:.git / config中'core.autocrlf'的錯誤配置值

[英]git status : bad config value for 'core.autocrlf' in .git/config

我在執行以下操作時遇到以下錯誤

$ git status
fatal: bad config value for 'core.autocrlf' in .git/config

我用git branch或任何其他命令得到相同的結果關於可能的原因有什么建議嗎?

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
    hideDotFiles = dotGitOnly
    autocrlf = =
[remote "origin"]
    url = git@mst-git:tgi-common/gcmmon.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
[submodule "Experience"]
    url = git@mst-git:tgi-windows-os/exp.git
[submodule "Module"]
    url = git@mst-git:tgi-general-tools/module.git

不確定您的操作方式,但是基本上刪除了文件中的行

 autocrlf = =

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM