Creating a new git branch in eclipse

Every time I try to create a new branch in eclipse it creates one based on the current branch. I want it to create it based on the master.

I rt-click my shared project (buddy) -> team-> switchTo-> new branch Source-> select-> master

Even though I say to create it from master, it always includes the contents of the current branch, which is not always correct.

How do I fix this other than command line git reset --hard HEAD? I would like to create a master branch with no content from the current branch.

It looks like I am doing this correctly based on the instructions I have seen.

Thanks, Mich

0


source to share


1 answer


I understood that. I needed to push changes from master (remote) to master that I had installed in my current project. Then I was able to see the latest changes. Then, as suggested above, I would create a new branch.



0


source







All Articles