Re: New User Question
From: Fredrik Gustafsson <hidden>
Date: 2016-06-15 22:57:47
On Mon, Jun 17, 2013 at 11:39:44AM -0400, Joel McGahen wrote:
I have a question about GIT remote repos. Here is my scenario. 1. Work client has a repo (origin, branch of master). 2. Due to contractual issues I need to host a remote copy of this repo that my developers can utilize while we get the contractual issues resolved as development must continue. 3. I have a virtual machine from the client which already has a remote of origin setup. 4. I have created a bare repo on a server my developer's have access to. 5. I have added that remote to my copy of the client VM local repo and pushed its contents to my newly created bare repo. What I need to understand is how to a) Connect my developer's VM local repos to the new remote repo I created so they can continue to work. b) Once the contractual issues are resolved reconnect the developer's local repos back to the original orgin/master repo and merge all their changes. I'm fairly new to GIT but have worked with version control for a long time (CVS, PVCS, Subversion etc). Any help would be greatly appreciated!
Hi! The short answer is: git remote add (and git help remote for details). It's also possible to manally edit .git/config if it's basically just a adress change you're doing. The long answer is harder. You've experience with centralized systems. Remember that git is decentralized. Every developer you've is a fully functional unit on his own. All you need is a way for the developers to interact with eachothers. It can be done via e-mail, or with them pulling from eachother directly or as you've done, with one central repository that everyone sync to. The questions you've is rather fundamental to git. I tells me that you do not fully utilize the strengths of git. I suggest reading the progit book. Good luck! -- Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: iveqy@iveqy.com