将符号链接添加到git存储库 [英] Add symlinks to git repository

查看:132
本文介绍了将符号链接添加到git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道

我正在研究一个小型库,它依赖于另一个github项目。 github.com/ajaxorg/cloud9/tree/1b1401f/supportrel =nofollow noreferrer>一些项目
添加符号链接。你到底是怎么做的? 解决方案

您需要使用的是 git submodules

示例: git submodule add git:/ /github.com/user/project.git destination-dir /


I'm working on a little library and it depends on another github project.

I know that some projects add symlinks. How exactly do you do that?

解决方案

What you'll want to use are git submodules.

Example: git submodule add git://github.com/user/project.git destination-dir/

这篇关于将符号链接添加到git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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