我已经创建了我的私有(private)项目的捆绑文件,我想与某人分享。他们要求我提供生成的 git 包文件。
我可以通过电子邮件将单个捆绑文件发送给他们吗? ...或者我还需要附加项目本身的文件夹吗?
最佳答案
Can I just email them the single bundle file?
是的,这就是 bundle 背后的 Gist 。
它是一个完整的只读存储库。
获得 bundle 后,您就可以分享它。
<小时/><小时/>git bundle will only package references that are shown by git show-ref: this includes heads, tags, and remote heads.
git bundle create ../reponame.bundle --all
--all
- 获取所有引用
此命令创建包含所有源代码和所有其他信息(如标签)的 bundle 。
即使由于 --all
没有记录,使用它也更好。
注意:--all
不会包含远程跟踪
分支!!!
关于javascript - 创建 Git 包并远程共享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35392261/