4 ms·
On that note, question. Is there an easy way to create mirror servers? For instance, have a Github repo but also a personal Git server and Bitbucket. Whenever
by antjanus 12y ago
On that note, question. Is there an easy way to create mirror servers?
For instance, have a Github repo but also a personal Git server and Bitbucket. Whenever you do `git push`, it'd update all three. And all three would be in sync.
- dlisboa 12y agoThere are a few ways. You can create a single remote called "all" that has all your servers URLs. Then you can just push to that one, like "git push all", and all your servers will update. Pretty much the simplest, you just need to edit the .git/config. You can set up a mirror too ("git remote add foobar --mirror=push ..."), but I've never done that. Or make a hook so that whenever you push to a remote it also pushes to another. There's also mr[1], which I've heard of but not used. There are ways aplenty, we just neglect to use them. [1]: http://myrepos.branchable.com/ http://myrepos.branchable.com/
- rdtsc 12y agoIt is very easy to setup a shared git server. http://git-scm.com/book/ch4-6.html http://git-scm.com/book/ch4-6.html
- brokenparser 12y agoIf you can mount it (w/ write permissions), you can push to it. Most companies already have a networked storage place.