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

Re: Howto request: going home in the middle of something?

From
Matthias Kestenholz <mk@spinlock.ch>
Date
Oct 23, 2007, 20:28 UTC
Message-ID
<256C87B5-3ADE-4A96-9530-A45B97601BAA@spinlock.ch>
In-Reply-To
<20071023135655.x6g6mln1j4880wog@intranet.digizenstudio.com>
Hi,
On 23.10.2007, at 19:56, Jing Xue wrote:
> What does the extra branch gain for us here? That's not a  
> rhetorical question, I'm actually curious to learn, because I  
> always just commit, switch to another computer, pull, and reset HEAD^.

If someone tracks the main branch you are working on and fetches while you are travelling home, he has the WIP commit as a new tip in his tree. If he bases further work upon the WIP commit, he'll need to rebase or merge his changes onto your new tip once you have amended or replaced the commit. If you are working on the master branch, you should really avoid rewinding it. Rewinding topic branches is ok, but a temporary branch is still better to clearly tell potential fetch-ers that this is only Work in Progress, and not meant to be published in the current state.

Matthias
-- 
http://spinlock.ch/blog/
Previous: Jan WielemakerNext: Jing Xue
Message 9 of 11 in “Howto request: going home in the middle of something?”
  1. Jan WielemakerOct 18, 2007
  2. Johannes SixtOct 18, 2007
  3. Karl HasselströmOct 18, 2007
  4. Petr BaudisOct 18, 2007
  5. Jan WielemakerOct 22, 2007
  6. Johannes SchindelinOct 22, 2007
  7. Jing XueOct 23, 2007
  8. Jan WielemakerOct 23, 2007
  9. Matthias KestenholzOct 23, 2007
  10. Jing XueOct 24, 2007
  11. Andy ParkinsOct 18, 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.