git-svn
是的,如果你已经进行了变基操作(即没有要推送的合并提交),dcommit将保留历史记录。但是,所有修订版本在svn上的用户名将保留推动者的凭据。
git svn clone
git rebase svn/trunk && git svn dcommit
git push
git svn clone svn:/path/to/repo
cd /repo/name
git pull /path/to/local/existing repo
git svn rebase
git svn dcommit
.git/config
svn-remote
git svn clone
克隆它,但我想直接推送它以及它的所有历史记录。在我克隆存储库之前,我无法运行dcommit,因为git svn不会知道我的远程存储库。 - ulocogit rebase svn/trunk && git svn dcommit
。 - Mykola Gurovgit push
会发生什么? - ulocogit svn clone svn:/path/to/repo
,cd /repo/name
,git pull /path/to/local/existing repo
,git svn rebase
,git svn dcommit
。这对我很有效。 - uloco.git/config
文件中的svn-remote
部分。当然,将其通过 git svn clone 命令克隆到新的 git 仓库也是一种选择。 - Mykola Gurov