Some git questions
Posted: Mon Feb 02, 2015 11:54 am
Hey community,
I developed some feature for the CF 1.0 firmware and pushed it from my local repo to my firmware fork on GitHub into the feature branch origin/sonar-mb1242.
In the meantime, the CF 2.0 was released and therefore the original Bitraze firmware repo holds the additional branch crazyflie2. I'd like to copy that branch to my own fork.
I added the remote upstream pointing to the original Bitcraze repo. This is also essential for updating origin/master from the original Bitcraze repo upstream/master.
This is what I did so far to get the upstream/crazyflie2 branch into my local repo:
Now I have a local branch crazyflie2 tracking upstream/crazyflie2. Next step would be pushing this new local branch to my fork origin/crazyflie2.
Am I on the right track? How do I push the new local branch to my fork (origin)?
How do I tell the local branch crazyflie2 to track the recently pushed origin/crazyflie2 later on and not upstream/crazyflie2 anymore?
I hope I expressed myself clearly.
Thank you.
-alex
I developed some feature for the CF 1.0 firmware and pushed it from my local repo to my firmware fork on GitHub into the feature branch origin/sonar-mb1242.
In the meantime, the CF 2.0 was released and therefore the original Bitraze firmware repo holds the additional branch crazyflie2. I'd like to copy that branch to my own fork.
I added the remote upstream pointing to the original Bitcraze repo. This is also essential for updating origin/master from the original Bitcraze repo upstream/master.
This is what I did so far to get the upstream/crazyflie2 branch into my local repo:
Code: Select all
git fetch upstream
git checkout --track upstream/crazyflie2
Am I on the right track? How do I push the new local branch to my fork (origin)?
How do I tell the local branch crazyflie2 to track the recently pushed origin/crazyflie2 later on and not upstream/crazyflie2 anymore?
I hope I expressed myself clearly.
Thank you.
-alex