I have a repository where a branch (admin
) has been branched out from develop
at some point. It looks roughly like this
develop c2 c4 c5
*------------*---------*---------*------------...
c1 \
\____________________*c3
admin
I want the develop branch to stay the same and admin branch should have it's own repository. For the record, I'm using sourcetree+bitbucket.
I tried the method mentioned in this answer and tried git push url://to/new/repository.git admin:develop
. What it did in my new repo is that the history started from the first commit of develop (c1). it looks like this in the new repository.
c1 c2 c3
*-------*----------------------------*
develop
I wanted to start this new repository from c2 however. Is it normal behavior or have I done somthing wrong? What's the correct way to achieve desired result?