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

Re: [PATCH] git builtin "push"

From
JGJeff Garzik <jeff@garzik.org>
Date
Apr 30, 2006, 21:30 UTC
Message-ID
<44552C6E.6090601@garzik.org>
In-Reply-To
<Pine.LNX.4.64.0604301303010.5231@g5.osdl.org>
Linus Torvalds wrote:
Show 10 quoted lines
> If you want to push other branches, you need to do
> 
> 	git push repo branch1 branch2 branch3 ...
> 
> or
> 
> 	git push --all repo
> 
> where the latter does exactly what it says (use "--tags" instead of 
> "--all" to just send all tags).

After experimenting, "--all" does indeed provide most of the features that rsync provides. A few minor niggles:

1) Doesn't propagate local branch deletions to the remote, like rsync does.
2) git-push "-f" doesn't seem to work, but "--force" does.
3) You still have to provide a $repo argument to 'git pull $repo'. 
Would like to list the default remote push URL in 
.git/remotes/{somefile} so that I need only to do "git push --all" to 
have changes send to any number of remote servers.
4) Propagation of alternatives is unclear (at least in docs).  Without 
my current pack file pre-sharing and hardlinking, I fear needlessly 
uploading vanilla linux-2.6.git changes back to kernel.org, when I do a 
push.  Currently, pack files are downloaded _once_ from kernel.org to 
local, and never re-uploaded.
Regards,
	Jeff
Previous: Junio C Hamano
Message 9 of 9 in “git builtin "push"”
  1. git builtin "push"Linus Torvalds, Apr 30, 2006
  2. Junio C HamanoApr 30, 2006
  3. seanApr 30, 2006
  4. Jeff GarzikApr 30, 2006
  5. Linus TorvaldsApr 30, 2006
  6. seanApr 30, 2006
  7. Linus TorvaldsApr 30, 2006
  8. Junio C HamanoApr 30, 2006
  9. Jeff GarzikApr 30, 2006

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.