我知道這個問題已被問過一百萬次,但是我的〜/ .gitconfig只包含兩行,它們與本教程中的字符正確無誤。致命錯誤:/home/trx/.gitconfig中的錯誤配置文件行1
git config --global user.name "trx"
git config --global user.email [email protected]
這裏有什麼問題?
我知道這個問題已被問過一百萬次,但是我的〜/ .gitconfig只包含兩行,它們與本教程中的字符正確無誤。致命錯誤:/home/trx/.gitconfig中的錯誤配置文件行1
git config --global user.name "trx"
git config --global user.email [email protected]
這裏有什麼問題?
這是我的〜/的.gitconfig:
[user]
name = Luigi R. Viggiano
email = [email protected]
[color]
ui = true
[merge]
tool = p4merge
[diff]
tool = p4merge
[push]
default = simple
你~/.gitconfig
是不是在正確的格式。
你並不需要把命令:
git config --global user.name "trx"
git config --global user.email [email protected]
在文件
...你需要在終端上鍵入它們。
刪除您的~/.gitconfig
並使用終端上的git config
命令對其進行操作,如教程中所述。
這些git config
行是您應該運行的命令,而不是配置文件的內容。
Doh,這很有趣。我認爲這些是從文件中讀取時會運行的命令。非常感謝。 (5分鐘接受) – Chazt3n 2013-02-14 14:20:20
不客氣。 – 2013-02-14 17:09:05