【问题标题】:git: sync with SVN and push to another remotegit:与 SVN 同步并推送到另一个远程
【发布时间】:2015-11-06 05:53:44
【问题描述】:

我已经使用git svn 克隆了一个外部 SVN 存储库。

我想:

  • 将我所做的提交推送到 git 远程(但不推送到 SVN 远程)
  • 从 git 和 svn 远程获取更改

到目前为止,我除了git-svn clone SVN 存储库之外什么都没做,并在 git 中创建了一个空的远程存储库。

我在这里需要哪些额外的设置步骤和工作流程? 我应该注意哪些潜在问题/愚蠢的错误?

【问题讨论】:

    标签: git svn git-remote


    【解决方案1】:

    我不知道 git svn 是否有任何缺陷,但如果您已经能够连接到您的存储库,您只需将另一个远程存储库添加到您的本地 git 并推送到该存储库:

    git remote add myRepo URL
    git push myRepo master
    

    更多信息请查看this

    【讨论】:

      猜你喜欢
      • 2020-06-09
      • 1970-01-01
      • 1970-01-01
      • 2013-04-16
      • 2019-03-17
      • 2018-01-30
      • 2011-09-10
      相关资源
      最近更新 更多