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

Re: yet another workflow question...

From
APAndy Parkins <andyparkins@gmail.com>
Date
Oct 12, 2007, 07:25 UTC
Message-ID
<200710120825.58235.andyparkins@gmail.com>
In-Reply-To
<20071011164019.3n4l3rayckck8c4w@intranet.digizenstudio.com>
On Thursday 2007 October 11, Jing Xue wrote:
Show 13 quoted lines
> Quoting Andy Parkins <andyparkins@gmail.com>:
> >  - Mobility.  This one is a bit distributed, but I hope you'll let
> > me have it.
> >    I often do work on my desktop at home, my desktop at work and my
> > laptop. By setting my remotes up correctly in git it's really easy to
> > walk to another system and pick up exactly where I left off from the
> > other computer.  More importantly though, when you accidentally make
> > changes in two places, there is no danger of data loss.
>
> To extend on this point, after picking up the randomly checked-in save
> point on another computer, the save point itself can be easily
> git-reset'ed.  So there won't be commits like "it's utter broken but i
> got to go home" polluting the history.  I find that extremely handy.
Absolutely; in fact I've had times when I've done things like this:
 git merge laptop-branch
 git merge home-branch
 git reset HEAD^^

That is to say, I'm not interested in documenting the merges, I just want to bring a set of changes from different places together ready for some proper commits, which of course can be done really easily with git add -i.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Jing Xue
Message 9 of 9 in “yet another workflow question...”
  1. Patrick DoyleOct 11, 2007
  2. David KastrupOct 11, 2007
  3. Steffen ProhaskaOct 11, 2007
  4. Johannes SixtOct 11, 2007
  5. Wincent ColaiutaOct 11, 2007
  6. Andy ParkinsOct 11, 2007
  7. Andreas EricssonOct 11, 2007
  8. Jing XueOct 11, 2007
  9. Andy ParkinsOct 12, 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.