Getting Branches to same level as master #22662
-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
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”:
Than reset with hard mode:
That’s all. Hope this helps 🙂 -Gabriele-
|
Beta Was this translation helpful? Give feedback.
-
For reset and i am a master |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. |
Beta Was this translation helpful? Give feedback.
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”:
Than reset with hard mode:
That’s all.
Hope this helps 🙂
-Gabriele-