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

Re: Push to all repositories

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 8, 2010, 18:00 UTC
Message-ID
<20101208180049.GC5687@burratino>
In-Reply-To
<1291829983410-5816069.post@n2.nabble.com>
Kevin Sheedy wrote:
> Basically, I want every developer to be able to push their code to the whole
> team.

What does this mean, in practice? Do you want (1) the code in their working directories to change under their feet, (2) the code you've written to be immediately available to them in case they pull out the network cable, or something else?

If case (2), then git currently provides support for fetching from multiple repositories at once:

	$ git fetch --multiple alice bob sam

but does not include such support for pushing. One can do so explicitly like so:

	$ for repo in alice blob sam
	  do
		git push $repo *:refs/remotes/kevin/*
	  done

Regards, Jonathan

Previous: Kevin SheedyNext: Kevin Sheedy
Message 2 of 9 in “Push to all repositories”
  1. Kevin SheedyDec 8, 2010
  2. Jonathan NiederDec 8, 2010
  3. Kevin SheedyDec 8, 2010
  4. Kevin SheedyDec 9, 2010
  5. Nguyen Thai Ngoc DuyDec 9, 2010
  6. Martin von ZweigbergkDec 9, 2010
  7. Jonathan NiederDec 9, 2010
  8. Enrico WeigeltJan 2, 2011
  9. Enrico WeigeltDec 12, 2010

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.