From: Jan Hudec Date: Sun, 06 Jun 2010 18:43:34 GMT Subject: Re: Commit to other branch Message-ID: <20100606184334.GB30035@efreet.light.src> In-Reply-To: <4C03D9C1.1060404@cedarsoft.com> On Mon, May 31, 2010 at 17:46:09 +0200, Johannes Schneider wrote: > I often run in that scenario: > I see a small bugfix/typo/missing documentation. Of course I just add a > bit of code to fix that issue... > Then I'd like to commit that change as own commit. And most of the time > this is possible without any problems (git commit ). > But as I am *always* working on a topic branch, it takes some work to > commit that change to another branch. What I'd probably do is just commit the quick fix, as separate commit, where I am. Than when I'd have a bit of time (probably when I'd otherwise think of rebasing on master anyway) I'd rebase -i all such fixes to the bottom of the topic branch, go to master and merge just those fixes. The rebase -i can be against current master, so the merge back would be fast-forward, of course. -- Jan 'Bulb' Hudec