Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 3

Getting Branches to same level as master

Solved! Go to Solution.

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.

git.PNG

2 Replies
Solution
Commander Lvl 2
Message 2 of 3

Re: Getting Branches to same level as master

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 🙂  

 

-Gabriele-

 

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!
Ground Controller Lvl 1
Message 3 of 3

Re: Getting Branches to same level as master

For reset and i am a master