开发者

Git and Beanstalk

开发者 https://www.devze.com 2023-01-10 03:05 出处:网络
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 fro开发者_如何学运维m a machin

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 fro开发者_如何学运维m 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


You should make each of your Beanstalk client a git submodule.
You simply declare:

  • a git repo per client
  • a git repo in the parent directory of all your current clients, and reference each of the git repos for the clients as submodules.

You can then clone the parent repo, and get back all your clients within it.
(additional cloning might be necessary)

0

精彩评论

暂无评论...
验证码 换一张
取 消