无法确定HEAD历史记录中的上游SVN信息 [英] Unable to determine upstream SVN information from HEAD history

查看:887
本文介绍了无法确定HEAD历史记录中的上游SVN信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我会收到这个错误信息?

解决方案

格式和错别字。)



这个错误信息有两个原因。



第一,是最常见的。你的git仓库中有两个不相交的历史记录:你在git中创建的历史记录,以及远程svn仓库的历史记录。



要解决这个问题,你需要你的git仓库和svn仓库共享一个共同的祖先,所以git可以确定哪些提交已经改变了什么。



以下 Article ,讨论如何解决问题:

问题的第二个可能原因是,如果您有早期版本的git(可能,windows msysGit包),并且您刚刚创建了一个新的与远程svn存储库通信的git存储库,例如:

  git svn init svn://svn.xxx .xxx / xxx / trunk 
git svn fetch -r BASE:10

p>

  git clone svn://svn.xxx.xxx/xxx/trunk //添加版本中的所有文件... 

在使用以下命令时,您会收到跟踪错误消息。

  git svn info 

无法从工作树或

  git svn rebase 


无法确定上游svn信息工作树历史记录或者

  git svn dcommit 

无法确定HEAD历史记录中的上游SVN信息



如果您收到上述错误消息,则首先检查您的git版本。如果你运行的旧版git版本< = 1.6.3.3。*在我的情况下是(msysGit),那么解决这个问题最简单的方法就是更新到最新版本的git,比如1.6.4。*。



以下 Article a>会更详细地讨论问题。


Why do I get this error message?

解决方案

(Posted Chad's "question" as an answer, fixed formatting and typos.)

There are a couple of causes for this error message.

The first, being the most common. You have two disjoint histories in your git repository: The history that you made in git, and the history from the remote svn repository.

To fix this, you need to make your git repository and svn repository share one common ancestor so git can figure what commits have changed what.

The following Article, discusses how to fix the problem:

The second possible cause of the problem is if you have an early version of git (possible, windows msysGit package) and you have just created a new git repository that communicates with a remote svn repository.

For example:

git svn init svn://svn.xxx.xxx/xxx/trunk
git svn fetch -r BASE:10

or

git clone svn://svn.xxx.xxx/xxx/trunk // Adds all the files in the revision...

And you get the follow error messages, when using the following commands.

git svn info

Unable to determine upstream svn information from working tree or

git svn rebase

unable determine upstream svn information working tree history or

  git svn dcommit

Unable to determine upstream SVN information from HEAD history

If you get the above error messages, first step is to check your git version. If your running a older git version <= 1.6.3.3.* that was in my case with (msysGit), then the easiest way to fix the problem is to update to a newest version of git such as 1.6.4.*.

The following Article discusses the problem in more detail.

这篇关于无法确定HEAD历史记录中的上游SVN信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆