git clone出错

7271阅读 0评论2012-09-24 txgc_wm
分类:LINUX

git时出现一下错误:

# git clone git://git.videolan.org/vlc-ports/android.git
Cloning into 'android'...
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 8 in /root/.gitconfig


解决方法:

# gedit /root/.gitconfig
[push]
    default = simple
改成
[push]
    default = upstream

上一篇:Android VLC 编译出错处理
下一篇:TraceRoute介绍及使用