git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: New User Question

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Jun 17, 2013, 17:07 UTC
Message-ID
<20130617170753.GD25488@paksenarrion.iveqy.com>
In-Reply-To
<F201B6D6-7A69-4DD6-BDF5-5AE12E3A176C@me.com>
On Mon, Jun 17, 2013 at 11:39:44AM -0400, Joel McGahen wrote:
Show 15 quoted lines
> 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
Previous: William Swanson
Message 5 of 5 in “New User Question”
  1. Joel McGahenJun 17, 2013
  2. William SwansonJun 17, 2013
  3. Joel McGahenJun 17, 2013
  4. William SwansonJun 17, 2013
  5. Fredrik GustafssonJun 17, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.