On Thursday 10 June 2010 21:21:50 Joel Roth wrote:
> On Fri, Jun 11, 2010 at 03:25:07AM +0300, Alexander Batischev wrote:
> > I did a commit lately but figured out that it was made in wrong place - I
> > was browsing previous commits at the moment, so now my new commit is
> > somewhere in the middle of the history. I have its hash and I want to
> > move it so it would be 'son' of last commit in the master branch. Which
> > command should I use?
> 
> git-checkout master
> git-cherry-pick <commit>

That's one way, I prefer something like:
git checkout <commit>
git rebase --onto master 'HEAD^'

-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
[email protected]                  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to