`
aigo
  • 浏览: 2537882 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

Git提供的类似svn:externals的功能

git 
阅读更多

 

原文:

SVN:externals equivalent in GIT?

http://stackoverflow.com/questions/571232/svnexternals-equivalent-in-git

 

Git has two approaches similar to, but not exactly equivalent to svn:externals:

  • Subtree merges insert the external project's code into a separate sub-directory within your repo. This has a detailed process to set up and then is very easy for other users, because it is automatically included when the repository is checked out or cloned. This can be a convenient way to include a dependency in your project.
    It is easy to pull changes from the other project, but complicated to submit changes back. And if the other project have to merge from your code, the project histories get merged and the two projects effectively become one.

  • Git submodules (manual) link to a particular commit in another project's repository, much like svn:externals with an -r argument. Submodules are easy to set up, but all users have to manage the submodules, which are not automatically included in checkouts (or clones).
    Although it is easy to submit changes back to the other project, doing so may cause problems if the repo has changed. Therefore it is generally not appropriate to submit changes back to a project that is under active development.

 

 

分享到:
评论

相关推荐

    git svn转换工具

    svn+git实现离线提交并且不需要到处所有svn版本,速度超快非一般的感觉,超越git本身的git2svn功能。 使用本工具需要安装基础工具: 首先安装git msysgit:https://code.google.com/p/msysgit/downloads/list msysgit...

    git和svn学习入门教程

    现在使用git的比svn多了,但是git操作比svn复杂,上传git和svn的简单教程

    Git windows安装包 以及乌龟git 类似于svn菜单 安装后可设置汉化

    git为windows64位安装版本,另带有乌龟git和乌龟git的汉化包,注:汉化包不用安装也可以设置汉化乌龟。

    Git2Svn:代码git到svn的单向同步

    git2svn提供git到svn的单向同步,基于代码,但做了一些改进,支持更多参数,bash同步脚本使用方法: ./git2svn.sh [-r git_revision] [-t type] [-u svn_user] [-p svn_password] [-l locale] <local> 其中:type参数...

    Git与SVN比较

    Git与SVN比较Git与SVN比较Git与SVN比较Git与SVN比较Git与SVN比较Git与SVN比较

    git-gateway:Git API的网关

    git-gateway-托管git API的网关基于角色的通用Git Hosting提供程序的API的安全访问。 使用JAMstack方法构建站点时,一种常见的模式是将所有内容作为结构化数据存储在Git存储库中,而不是依赖于外部数据库。 Netlify ...

    git-as-svn:git存储库的Subversion前端服务器(java)

    git-as-svn:git存储库的Subversion前端服务器(java)

    Git2.11.1+SVNGit2.4.0.zip

    Git-2.11.1-64-bit 和 TortoiseGit-2.4.0.0-64bit,适用于使用Git有服务器仓库,把写好代码放入Git仓库,使用SVNGit上传更新等,使用Git仓库的好处就在于,你在家里也是可以上传更新的,只要账号密码正确就可以了,...

    git相关资料

    git 和 svn 区别:http://www.oschina.net/news/12542/git-and-svn git的基本命令: 1, 创建Git库 cd 源码目录 git init #初始化 在源码目录内生成一个.git的目录 2, 注册用户信息 git config --global user.name ...

    git 、svn汉化包

    git 、svn汉化包git 、svn汉化包git 、svn汉化包git 、svn汉化包git 、svn汉化包

    git-svn使用用法

    git-svn 的用法 介绍git-svn 的用法 和使用场景

    perl-Git-SVN-1.8.3.1-23.el7_8.noarch.rpm

    官方离线安装包,亲测可用。使用rpm -ivh [rpm完整包名] 进行安装

    git-as-svn.zip

    git-as-svn 是 Git 仓库的 SVN 前端,你可以使用 SVN 协议来访问 Git 仓库 标签:gitassvn

    build-a-molecule:“构建分子”是PhET Interactive Simulations在HTML5中进行的教育模拟

    快速开始(1)克隆仿真及其依赖项: git clone https://github.com/phetsims/assert.gitgit clone https://github.com/phetsims/axon.gitgit clone https://github.com/phetsims/babel.gitgit clone ...

    SVN迁移到Git

    从SVN迁移到Git之后,项目开发代码继续在SVN提交,如何同步迁移之后继续在SVN提交的代码到Git

    svn-to-git-dockerized:使用svn2git工具将svn仓库转换为docker化的git仓库的工具

    svn到git-dockerized 只有1个依赖项(Docker),您可以将svn repos转换为git repos。 Dockerfile用于创建具有所有必需的svn2git依赖项的映像。 然后,该图像在svn2git可执行文件中使用。 可执行文件是docker run命令...

    git-ray::laptop::water_pistol:-一个nodejs库来调用用RxJS编写的git命令

    git-ray :laptop: :water_pistol: -一个nodejs库来调用用RxJS编写的git命令 安装 yarn add git-ray 或者 npm install git-ray 用法 可以观察到 当前支持的命令: git-clone git-pull git-checkout git-remote...

    解决git:fatal:Unable to create”…/.git/index.lock” 的错误

    问题描述: 在使用git 进行提交时, 出现上面这个报错, 导致无法提交. 报错大致意思就是创建index.lock文件失败,因为已经存在index.lock文件了. index.lock文件是在.git下面, 而.git是一般是隐藏的, 那么可以通过以下...

    软件管理工具SVN和Git的安装使用

    目前的最常用的版本控制中心有两种:SVN和Git...Git:分布式版本控制中心,而Git就像是多对多的关系,每一个终端都是一个仓库,客户端可以拉取最新版本的代码,每一次的拉取操作,实际上都是一次对代码仓库的完整备份。

    SVN迁移到git

    描述了如何从SVN迁移到git,比较简短,精炼,文档中提到的users.txt为svn与git的用户对照

Global site tag (gtag.js) - Google Analytics