Cygwin:git svn抱怨配置文件不正确
在Cygwin上使用git svn执行远程操作,例如:Cygwin:git svn抱怨配置文件不正确,cygwin,git-svn,Cygwin,Git Svn,在Cygwin上使用git svn执行远程操作,例如: git-svn-rebase git svn数据委员会 等等 导致出现关于错误配置文件的许多奇怪错误消息之一 $ git svn rebase fatal: bad config file line 1 in /home/tj/.gitconfig fatal: bad config file line 1 in /home/tj/.gitconfig Cannot rebase: You have unstaged changes.
- git-svn-rebase
- git svn数据委员会
- 等等
$ git svn rebase
fatal: bad config file line 1 in /home/tj/.gitconfig
fatal: bad config file line 1 in /home/tj/.gitconfig
Cannot rebase: You have unstaged changes.
Please commit or stash them.
rebase refs/remotes/git-svn: command returned error: 1
实际上没有任何未老化的更改,该错误消息似乎是配置文件问题的产物:
# On branch master
nothing to commit (working directory clean)
有时它会抱怨同一文件中的其他行,或者.git/config中的行
我实际的git配置文件非常简单,完全相同的配置文件在其他机器(也运行Cygwin)上也可以正常工作。供参考:
.gitconfig:
[user]
name = tj
email = tj@example.com
.git/config:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
preloadindex = true
[svn-remote "svn"]
url = https://url.to/repository
fetch = :refs/remotes/git-svn
octo间距是文件中的一个选项卡,在vim中使用set list查看该文件时,不会显示任何奇怪的字符
最奇怪的是,有时它只是毫无问题地工作。但是,在短时间后,它会继续显示错误消息。如果有人知道这个问题可能存在,或者知道如何解决,我将不胜感激
谢谢
编辑:
到目前为止,我所尝试的:
- 从运行Cygwin的工作计算机复制良好的配置文件
- 在Cygwin运行REBASEAL
- 重新安装git svn包
- 重新安装Cygwin(最好不要)
从.git/config文件中删除preload index=true似乎已经解决了这个问题,尽管很难说清楚。罪魁祸首确实是core.preload index=true,在cygwin中不起作用。罪魁祸首确实是core.preload index=true,在cygwin中不起作用