I know this might look like a duplicate to the other similar questions, but it is slightly different.
My case:
We've been developing on the master branch for a while and now we want to apply this branching model: A successful Git branching model
So what we want to achieve is to rename the remote master to the develop.
My steps:
git branch -m master develop
git push origin develop
git push origin :master //remove old remote master
At this point I create a new master branch localy from develop and push this remotely: git push origin master
Start using the branching model:
I created a couple of commits on the develop branch. And now I want to make a release 1.
I am going to master. git merge --no-ff develop git push origin master
My problem:
I expect to see the commit history of the old master on the develop branch, but I still see the initial commit on the master branch:
At the same time when I switch to develop branch and see the log I can see the initial commit on the develop branch.
Question:
Is it possible to achieve what I want and how?