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

Re: Adding push configuration to .git/config

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 22, 2007, 11:23 UTC
Message-ID
<Pine.LNX.4.64.0711221120300.27959@racer.site>
In-Reply-To
<7E8CB606-6CBD-4736-A2CB-0A1E1BD219D3@zib.de>
Hi,
On Thu, 22 Nov 2007, Steffen Prohaska wrote:
Show 10 quoted lines
> 	git checkout -b foo origin/master
>         work work work
> 	git checkout -b bar origin/master
> 	work work work
> 	git checkout foo
> 	git pull   # or git fetch; git rebase
> 	git push
> 	git checkout bar
> 	git branch -d foo
>         work work, ... and later push bar, too

I have to say that I slowly grow an antipathy for "git push" without parameters. _All_ of the confusions with push that I saw stem from being too lazy to say where and what you want to push. (Okay, there is this other thing where people say "git push origin master:master" and I still do not know where they got _that_ from.)

I would _never_ teach people to be sloppy here. Even if you introduce whatever appears convenient to you. IMHO this is not only giving rope, but close to putting the noose around the neck.

Ciao, Dscho

Previous: Steffen ProhaskaNext: Junio C Hamano
Message 9 of 16 in “Adding push configuration to .git/config”
  1. Nico -telmich- SchotteliusNov 21, 2007
  2. Steffen ProhaskaNov 21, 2007
  3. Junio C HamanoNov 22, 2007
  4. Steffen ProhaskaNov 22, 2007
  5. Andreas EricssonNov 22, 2007
  6. Junio C HamanoNov 22, 2007
  7. Junio C HamanoNov 22, 2007
  8. Steffen ProhaskaNov 22, 2007
  9. Johannes SchindelinNov 22, 2007
  10. Junio C HamanoNov 22, 2007
  11. Andreas EricssonNov 22, 2007
  12. Steffen ProhaskaNov 22, 2007
  13. Nico -telmich- SchotteliusNov 28, 2007
  14. Johannes SchindelinNov 28, 2007
  15. Junio C HamanoNov 29, 2007
  16. Jakub NarebskiNov 30, 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.