Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Remote Branch To Push To In Netbeans

Tags:

git

push

netbeans

I'm using netbeans 7.1 and I want to change remote branch to push to. I cannot find a way to do that. If I do a pull, I can see the branches (dev and master). But when I do a push, I only see my local, then the one orginal branch (master).

Edit:

I can also see the remote branches when I do browse the repo. I see both (dev) and (master) there.

Any advice?

like image 784
Jay D. Avatar asked Oct 08 '22 07:10

Jay D.


1 Answers

After two hours I have figured out how to change branches remotely. This is for anyone that may come across this in a search looking for this answer.

right click your project in Netbeans. -> Get -> Branch -> Switch To Branch.

In my case I switched to branch dev, this is the branch I wanted. Note, I lost all my changes. I had to do a history to add them back.

Note again, this takes a few minutes to run. It seems like it scans the project for all changes.

Now that you have your changes in, do the usual steps to push your changes. Now in the final part of the push, you should see the other branch, which was dev for me. Push changes up.

I hope this helps someone out there.

like image 111
Jay D. Avatar answered Oct 11 '22 00:10

Jay D.