Getting Branches to same level as master

Hi I am learning to use GIT and have a problem and I’m not sure how to solve it.

I have my feature and development branch behind the master and want them to be on the same level as the master branch. Which command can I use to do that? git rebase wouldn’t solve my problem, right?

Thank you for your help.


Hi @frius94,

You can do with the git reset command. Checkout to the branch you want to put at the same level of master, for example “development”:

git checkout development

Than reset with hard mode:

git reset --hard master

That’s all.

Hope this helps :slightly_smiling_face:  


Mark helpful posts with Accept as Solution to help other users locate important info. Don’t forget to give Kudos for great content!

1 Like

For reset and i am a master

Thanks for the info.