我从'http://msysgit.github.com/'安装了Git for Windows 我正在运行Windows 7.
我使用他们的工具'repo'检查android源代码。我使用'Git Gui'来打开存储库。我收到这个错误:
你能说出为什么抱怨'.git / config'吗?
fatal: bad config file line 1 in .git/config
fatal: bad config file line 1 in .git/config
while executing
"exec C:/Programs/Git/libexec/git-core/git-config.exe --global --add gui.recentrepo C:/Programs/cygwin/home/mike/Src/android-jb/packages/a..."
("eval" body line 1)
invoked from within
"eval exec $opt $cmdp $args"
(procedure "git" line 23)
invoked from within
"git config --global --add gui.recentrepo $path"
(procedure "_append_recentrepos" line 16)
invoked from within
"_append_recentrepos [pwd]"
(procedure "choose_repository::_do_open2" line 12)
invoked from within
"choose_repository::_do_open2 ::choose_repository::__o1::__d"
invoked from within
".buttons.next invoke "
invoked from within
".buttons.next instate !disabled { .buttons.next invoke } "
invoked from within
".buttons.next instate pressed { .buttons.next state !pressed; .buttons.next instate !disabled { .buttons.next invoke } } "
(command bound to event)
答案 0 :(得分:0)
尝试自己创建一个简单的git存储库并创建一些提交。调用gitk看看gitk和git-gui是否有效