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

Re: Problem with a push

From
Jon Loeliger <jdl@freescale.com>
Date
Jun 12, 2007, 20:15 UTC
Message-ID
<1181679304.12616.30.camel@ld0161-tx32>
In-Reply-To
<alpine.LFD.0.98.0706111727240.14121@woody.linux-foundation.org>
On Mon, 2007-06-11 at 19:40, Linus Torvalds wrote:
Show 9 quoted lines
> That said, I don't think that's necessarily the right answer in the longer 
> run. It's how git people do things, but it's not necessarily the *best* 
> way of doing things. I think the better solution in the longer term is to 
> simply improve how "git push" works:
> 
>  - we should probably do the same kinds of .git/config file entries for 
>    pushing as we do for fetching, and just get rid of the old implicit 
>    model, and instead have a nice refspec pattern model for what gets 
>    pushed instead.

Yeah, the other day I was baffled briefly by the fact that I added a remote to my config using "git remote add ..." with the intent of using it for pushing to a publishing site. I forgot that it set up fetch only refs.

Maybe a new "--push" flag to 'git remote add --push ..." to indicated the intended flow direction for a remote?

> anyway, I think the _proper_ thing to do would be to associate each 
> [remote] entry in the config file with a "push" refspec pattern, the way 
> we do for "fetch" already.
nod
jdl
Previous: Linus TorvaldsNext: Junio C Hamano
Message 8 of 15 in “Problem with a push”
  1. Alex R.M. TurnerJun 11, 2007
  2. Linus TorvaldsJun 11, 2007
  3. Alex R.M. TurnerJun 11, 2007
  4. Linus TorvaldsJun 12, 2007
  5. Junio C HamanoJun 12, 2007
  6. Alex R.M. TurnerJun 12, 2007
  7. Linus TorvaldsJun 12, 2007
  8. Jon LoeligerJun 12, 2007
  9. Junio C HamanoJun 11, 2007
  10. Andy ParkinsJun 12, 2007
  11. Linus TorvaldsJun 12, 2007
  12. Junio C HamanoJun 12, 2007
  13. Linus TorvaldsJun 12, 2007
  14. Martin LanghoffJun 12, 2007
  15. "git-push $URL" without refspecs pushes only matching branchesJunio C Hamano, Jul 2, 2007

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.