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

2013-10-22 Thread Noufal Ibrahim
Mandeep Sandhu 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 >

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

2013-10-22 Thread Mandeep Sandhu
Thanks for the link. I too tried doing a rebase with --onto, though as I said, I was getting a lot of conflicts while doing it. So cherry-picking my 2 commits was the solution that worked. I had also screwed up my topic branch by doing different combo's of this cmd and using --set-upstream-to opt

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

2013-10-21 Thread Mandeep Sandhu
On Tue, Oct 22, 2013 at 11:30 AM, Bryan Turner wrote: > A quick glance at your command line and the man page for git rebase > suggests the problem was you didn't actually use --onto. I believe the > correct command would be: > > git rebase --onto dev stable topicA Yes, thats the cmd I gave. (miss

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

2013-10-21 Thread Mandeep Sandhu
>> $ git rebase dev stable topicA >> (this was suggested in the manpage as well). > > > I guess you also had an "--onto" in there, as the above would throw a syntax > error. As long as the branches are in order, I cannot see how that wouldn't > do what you wanted. Yes, you're right. There was "--o

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

2013-10-21 Thread Peter Krefting
Mandeep Sandhu: Here's what I did when I was in topicA: $ git rebase dev stable topicA (this was suggested in the manpage as well). I guess you also had an "--onto" in there, as the above would throw a syntax error. As long as the branches are in order, I cannot see how that wouldn't do wha

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

2013-10-21 Thread Bryan Turner
A quick glance at your command line and the man page for git rebase suggests the problem was you didn't actually use --onto. I believe the correct command would be: git rebase --onto dev stable topicA That should start by determining which commits are one topicA but not stable and then checkout

Re: Moving commits from one branch to another

2013-01-23 Thread John Keeping
On Wed, Jan 23, 2013 at 03:13:19PM +0100, Stefan Schulze wrote: > > > Is there any way to move/copy commits from one branch to another > > > without a common base-commit and without a forced push of master? > > > > Did you try "git rebase" with "--onto"? You probably want something > > like this:

Re: Moving commits from one branch to another

2013-01-23 Thread John Keeping
On Wed, Jan 23, 2013 at 01:04:03PM +0100, Stefan Schulze wrote: > my team uses a central git-repo since >1500 commits and now we have to sync > (only one-way is necessary for now) our repository every three weeks with an > external svn-repo. > I created the new base-directory (incl. trunk/tags/bran