English 中文(简体)
如何在现有的宝库中获取新的数据并致力于挖掘?
原标题:How to get a new data in an existing repository of git and commit to svn?

我正在利用惠特-先令获取阴背书数据。 我成功地利用一些周围的工作,从树胶到粉碎子(我把子les子改成树子),并做了罚款。

But now I am getting stuck. If I want get a git pull a update data of existing repos of git, it gives me all updated data on my local branch, but I am not able to dcommit to svn using git svn dcommit command it gives me error message as follows:

Unable to determine upstream SVN information from HEAD history 
Perhaps the repository is empty. at /usr/libexec/git-core/git-svn line 521. 

Any instructions on how to do this would be very much appreciated!

问题回答

I may be mistaken but my understanding is that git-svn cannot be shared with an upstream git repo only a subversion one.

我完全怀念我试图做你所想做的事情,从遥远的宝库拖到颠覆。

我现在做的是用it子做我的SCC,我把档案复制成只控制当地树木的颠覆,然后检查这种颠覆。

我写了一幅地方树苗与当地转树之间的yn。 它只改变了档案,只有我所关心的档案。 然后,我从颠覆性工作树中找到一个正常的<代码>svn ci。

Ok I found the source of my understanding here... http://git-scm.com/docs/git-svn under the heading CAVEATS...

For the sake of simplicity and interoperating with a less-capable system (SVN), it is recommended that all git svn users clone, fetch and dcommit directly from the SVN server, and avoid all git clone/pull/merge/push operations between git repositories and branches. The recommended method of exchanging code between git branches and users is git format-patch and git am, or just dcommit’ing to the SVN repository.

Running git merge or git pull is NOT recommended on a branch you plan to dcommit from. Subversion does not represent merges in any reasonable or useful fashion; so users using Subversion cannot see any merges you’ve made. Furthermore, if you merge or pull from a git branch that is a mirror of an SVN branch, dcommit may commit to the wrong branch.





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签