Git 和 Beanstalk
我正在尝试使用 Git...我发现 Beanstalkapp 适合我的需求。
我在 Beanstalk 上为每个客户端创建了单独的存储库,然后从工作的机器上推送所有文件。
我已经为每个客户端创建了存储库,我的 Beanstalk 帐户现在如下所示:
Client One (repository)<br>
--a load of files and folders<br>
Client Two (repository)<br>
--a load of files and folders<br>
Client Three (repository)<br>
--a load of files and folders
...etc
这反映了我在另一台计算机上建立提交的文件夹结构,
**GIT(root)**
Client One (repository)
--a load of files and folders
Client Two (repository)
--a load of files and folders
Client Three (repository)
--a load of files and folders
我现在需要在新计算机上复制它!
我如何“拉”下文件(git)并镜像我在另一台机器上的结构?我想我在这里寻找同步?
预先感谢您的任何建议!
中号
I'm experimenting with Git... I've found Beanstalkapp suits my needs.
I've created individual repositories for EACH client on Beanstalk and then pushed all the files from a machine at work.
I've created repositories for each client and my Beanstalk account now looks like this:
Client One (repository)<br>
--a load of files and folders<br>
Client Two (repository)<br>
--a load of files and folders<br>
Client Three (repository)<br>
--a load of files and folders
...etc
This mirrors the folder structure I established the commit from on another machine
**GIT(root)**
Client One (repository)
--a load of files and folders
Client Two (repository)
--a load of files and folders
Client Three (repository)
--a load of files and folders
I now need to replicate this on a new machine!
How do I 'pull' the files down (git) and mirror the structure I have on the other machine?? I guess I'm looking for synchronization here?
Thanks in advance for any advice!
M
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该将每个 Beanstalk 客户端设为 git 子模块 .
您只需声明:
然后,您可以克隆父存储库,并取回其中的所有客户端。
(可能需要额外的克隆)
You should make each of your Beanstalk client a git submodule.
You simply declare:
You can then clone the parent repo, and get back all your clients within it.
(additional cloning might be necessary)