git-svn没有提交分支,只有中继 [英] git-svn isn't committing to branches, only trunk

查看:178
本文介绍了git-svn没有提交分支,只有中继的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 
$ SVN / [项目] / trunk $ b我正在处理一个SVN仓库$ b $ SVN / [project] / branches / [user] / [branch]
$ SVN / [project] / tags / releases / [tag]

我的.git / config如下所示:

 
[svn-remotesvn]
url = $ SVN
fetch = project / trunk:refs / remotes / trunk
branches = project / branches / * / *:refs / remotes / *

当我看着git branch -a时,我看到了所有的远程分支。比方说,我想检查一个,处理它,然后再提交更改。这是我想要做的:

 
git checkout -b评论erik /评论
....工作,提交local ...
git svn dcommit

然而,dcommit总是推送到$ SVN / project / trunk。 git svn info 总是报告URL为$ SVN / project / trunk



我试过使用--track ,我试着用--hard重新设置。我在这里没有想法。我怀疑这是我的[svn-remote],但这只是一种预感。

少我在找什么:
使用Git-Svn克隆非标准Svn仓库



我仍然遇到一些问题,有些更改没有显示出来,但那是另一天。谢谢大家!


I'm working with an SVN repository that is laid out like this:

$SVN/[project]/trunk
$SVN/[project]/branches/[user]/[branch]
$SVN/[project]/tags/releases/[tag]

My .git/config looks like this:

[svn-remote "svn"]
  url = $SVN   
  fetch = project/trunk:refs/remotes/trunk   
  branches = project/branches/*/*:refs/remotes/*  

When I look at git branch -a, I see all the remote branches. Let's say I want to check one out, work on it, then commit the changes back. Here's is what I am trying to do:

git checkout -b comments erik/comments
.... work, commit locally ....
git svn dcommit

However, dcommit always pushes to $SVN/project/trunk. git svn info always reports the URL as $SVN/project/trunk

I've tried using --track, I've tried reseting with --hard. I'm out of ideas here. I suspect it's my [svn-remote], but that's just a hunch.

解决方案

It looks like this did more-or-less what I'm looking for: Cloning a Non-Standard Svn Repository with Git-Svn

I still have an issue with some changes not showing up, but that's for another day. Thanks everyone!

这篇关于git-svn没有提交分支,只有中继的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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