2013-04-17 61 views
2

git的差異拋出以下錯誤Git的崇高包並不在我的崇高文字工作

error: Malformed value for push.default: simple 
error: Must be one of nothing, matching, tracking or current. 
fatal: bad config file line 7 in /Users/fizer/.gitconfig 

如果我刪除push.default:從簡單的.gitconfig。然後它工作。但是當我做git push,它抱怨它需要push.default:簡單

如何解決?

+1

嘗試[按] 默認=電流? –

+0

現在它與push.default一起工作:匹配,但最新的git表明它需要**簡單**。 –

回答

2

崇高正在使用舊版本的git。如果你是在Linux上得到的which git輸出在終端和如下改變你的git包設置:

{ 
    "git_command": "/new/path/to/git" 
} 
+1

謝謝,這對我有用:) – Raghav