Thread (2 messages) 2 messages, 2 authors, 2016-06-15

Re: Moving commits from one branch to another (improving my git fu!)

flat view

From: Noufal Ibrahim <hidden>
Date: 2016-06-15 22:59:03

Mandeep Sandhu [off-list ref] writes:
Hi All,

I'm in a bit of a pickle! :) So I've come to ask for help from the guru's here.

My story is not unique but somehow the various suggested solutions
don't seem to work in my case.

* I was working on a feature which was supposed to be done off our
'dev' branch. But instead I forgot and branched out my topic branch
from master (or as we call it 'stable').
* I did 2 commits and finished off my work. Only later realizing that
it had to be done off 'dev'.
* Now I want to move my 2 commits (which are the top 2 commits on my
topic branch) to a new branch which is branched off 'dev'.
I had a situtation similar to this a while ago and used the --onto
option to rebase. The details are at 
http://nibrahim.net.in/2012/01/09/moving_topic_branches_in_git.html

[...]


-- 
Cordially,
Noufal
http://nibrahim.net.in
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help