关于在存在大量svn外部程序的情况下使用Git与svn的提示 [英] Tips on using Git with svn in presence of a large number of svn externals

查看:137
本文介绍了关于在存在大量svn外部程序的情况下使用Git与svn的提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个工作流(在svn上),我试图用git复制,但是无法使用。



我有大量的Django应用程序被插在一起形成一个完整的项目)其中一些是一个大的回购,而其他的是在较小的回购。



我的布局看起来像,

  app1  - > repo1 / app1 
app2 - > repo2 / app2
app3 - > repo1 / appp3

模板/ app1 - > repo1 / templates / app1
templates / app2 - > repo2 / app2 / templates / app2
templates / app3 - > repo1 / templates / appp3

site_media / app1 - > repo1 / media / app1
site_media / app2 - > repo2 / static / app2
site_media / app3 - > repo1 / media / appp3

所以我在正确的应用程序回收中工作,当我们要更新任何给定的项目,我们只是做一个svn up和svn exterbal照顾其余的。如何在Git中获得此工作流程。

解决方案

您要使用git 子模块这个先前的SO问题将svn repos集成到git项目中。


I have a workflow(on svn) which I am trying to replicate with git, but am unable to.

I have a large number of Django apps (which are plugged together to form a form a full project) Some of these are in one large repo and others are in smaller repos.

My layout looks something like,

app1 -> repo1/app1
app2 -> repo2/app2
app3 -> repo1/appp3

templates/app1 -> repo1/templates/app1
templates/app2 -> repo2/app2/templates/app2
templates/app3 -> repo1/templates/appp3

site_media/app1 -> repo1/media/app1
site_media/app2 -> repo2/static/app2
site_media/app3 -> repo1/media/appp3

So I work in the correct app repos, and when we want to update any given project, we just do a svn up and svn exterbal takes care of the rest. How do I get this workflow in Git.

解决方案

You want to use git submodules, and this prior SO question addressed integrating svn repos into a git project.

这篇关于关于在存在大量svn外部程序的情况下使用Git与svn的提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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