From: Johannes Schindelin Date: Mon, 22 Oct 2007 11:32:43 GMT Subject: Re: Howto request: going home in the middle of something? Message-ID: In-Reply-To: <200710221044.24191.wielemak@science.uva.nl> Hi, On Mon, 22 Oct 2007, Jan Wielemaker wrote: > Thanks for the replies. I think I can live with something like this > > > $ git checkout -b home > $ git commit > $ git checkout master > > $ git jan@work:repo fetch home:home (using ssh) You probably meant "git fetch jan@work:repo home:home". > $ git checkout home > > $ git commit --amend > $ git checkout master > $ git merge home > $ git -d home > $ git commit > $ git push > > $ git -d home > $ git pull > > Its still a bit many commands and you have to be aware what you are > doing for quite a while, but it does provide one single clean commit > message, doesn't change the shared repo until all is finished and allows > to abandon all work without leaving traces. > > Personally I'd be more happy with > > > $ git stash > > $ git stash fetch jan@work{0} (well, some sensible syntax) > $ git stash apply > > $ git commit > $ git push > > $ git pull Happily, that is already possible: However, instead of git stash fetch jan@work{0} you should say git fetch jan@work stash:stash This will only fetch the last stash, but that is what you wanted anyway, right? Ciao, Dscho P.S.: Since you top-posted, I just ignored the mail you quoted, assuming that it was not relevant to your mail.