git svn, how should I init my svn repo and synchronise with my existing git repo

半世苍凉 提交于 2019-12-11 03:28:28

问题


I have currently working git repo at url_git and new svn repo at url_svn.

I want to use svn repo with git svn -plugin and I've cloned repo with:

git svn clone --username user url_svn/project_svn

and when I use for example

git svn rebase
or
git svn dcommit

It works just fine

And when I try to push my git repo to svn

git clone git_url/project_git
cd project_git
git svn init url_svn/project_svn

Fetch:

git svn fetch
        A       initial_commit
r1 = c9e1ab586b658f3f5518e3ed36e87ded675a4685 (refs/remotes/git-svn)

Rebase / dcommit:

git svn rebase
Unable to determine upstream SVN information from working tree history

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

What do I need to do to get this working?

来源:https://stackoverflow.com/questions/19572014/git-svn-how-should-i-init-my-svn-repo-and-synchronise-with-my-existing-git-repo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!