There is no option to change the remote tracked branch of a local branch, so the "Push to upstream" options shows an error. The only workaround is to push the current branch to remote (via the long wizard), then create a new branch based on the remote one, and finally the "Push to upstream" option works as intended.
Steps to reproduce:
1) Create a new project
2) Initialize GIT
3) Push to a remote repository
4) Try to select the option "Push to upstream" and an error will pop: "No tracked remote branch specified for local <branch name>". There is no way to select the tracked remote branch.
What is expected:
Alternative A: In the error shown, there should be an option to select which locale remote will be set to be tracked.
Alternative B: In the Git Repository Browser, in the context menu of a local branch, there should be an option to set the tracked remote branch of that local branch.
Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.5.0-28-generic running on i386; UTF-8; en_US (nb)
fixing: Git Repository Browser -> select a local branch -> popup menu -> Setup Tracked Branch. Or a shortcut: Team -> Git -> Branch -> Set Tracked Branch just for the current branch
Integrated into 'main-silver', will be available in build *201310040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Ondrej Vrabec <firstname.lastname@example.org>
Log: #230991 - Add ability to change current tracked remote branch