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

Re: A tour of git: the basics (and notes on some unfriendly messages)

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 30, 2007, 10:17 UTC
Message-ID
<7vr6kgh2yy.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<E8851B12-AAA5-4B4D-9F28-C5AB5AEF0E57@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
Show 7 quoted lines
> ... If everything's ok I do.
>
>    git checkout master
>    git merge for/master
>    git push
>
> The last merge must be a fast forward.

Last week I saw somebody (I think it was Shawn) mentioned a trick:

	git push . thisbranch:thatbranch

will moves thatbranch to thisbranch iff thisbranch is a descendant of thatbranch. So doing

	git push . for-master:master

instead of that checkout + merge command sequence would obviously be a good solution for your particular use case.

Having said that it may make sense to swap the order so that the diffstat is shown first and then a single line "Merge made by recursive" or "Updatting A..B, Fast Forward" concludes the report. At least, I do not think such a swapping would hurt the usability, although people used to the UI may first feel uneasy. I would not object to such a patch in principle.

Previous: Steffen ProhaskaNext: Johannes Schindelin
Message 20 of 26 in “A tour of git: the basics (and notes on some unfriendly messages)”
  1. Carl WorthSep 28, 2007
  2. Shawn O. PearceSep 29, 2007
  3. Johannes SchindelinSep 29, 2007
  4. Steffen ProhaskaSep 29, 2007
  5. Johannes SchindelinSep 29, 2007
  6. Steffen ProhaskaSep 29, 2007
  7. WinGit: included /bin/start in the installerSteffen Prohaska, Sep 29, 2007
  8. WinGit: include html pages from official git.git's html branchSteffen Prohaska, Sep 29, 2007
  9. Johannes SchindelinSep 29, 2007
  10. Junio C HamanoSep 29, 2007
  11. Johannes SchindelinSep 29, 2007
  12. Steffen ProhaskaSep 30, 2007
  13. Pierre HabouzitSep 29, 2007
  14. Wincent ColaiutaSep 30, 2007
  15. Pierre HabouzitSep 30, 2007
  16. Wincent ColaiutaSep 30, 2007
  17. Steffen ProhaskaSep 29, 2007
  18. Junio C HamanoSep 29, 2007
  19. Steffen ProhaskaSep 30, 2007
  20. Junio C HamanoSep 30, 2007
  21. Johannes SchindelinSep 30, 2007
  22. Steffen ProhaskaSep 30, 2007
  23. Junio C HamanoSep 29, 2007
  24. Carl WorthSep 30, 2007
  25. Carl WorthSep 30, 2007
  26. Nguyen Thai Ngoc DuySep 29, 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.