This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 209656 - Ability to create remote branch
Summary: Ability to create remote branch
Status: RESOLVED DUPLICATE of bug 225417
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: -S1S-
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-16 11:01 UTC by MattyD
Modified: 2013-01-28 15:33 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MattyD 2012-03-16 11:01:56 UTC
It would be nice to have the ability to manage branches on remote server.

Use Case: Pushing a locally created/modified branch(or tag) to the remote which is in a non-master, non-existent form.

With git you could do something along the lines as:
git push <remote-name> <local-branch-name>:<remote-branch-name>

I have attempted to trick the IDE into doing my bidding by attempting to create a branch named origin/<branch name> and pushing that to the remote but can only push it to the master branch.

This feature would be huge in the case of team-based collaboration between multiple new feature branches.
Comment 1 MattyD 2012-03-16 11:13:08 UTC
Errrrr.... I forgot one little detail!

git push <remote-name> <local-branch-name>:<remote-branch-name>

Works by copying the local branch name to a new remote branch of the same name.

You cannot however create a remote branch with a different name then that of the local one.

Example:
Works:
git push origin feature1

Does not work:
git push origin feature1:newFeature1

(referring to IDE control, both commands work as intended via shell use
Comment 2 Ondrej Vrabec 2013-01-28 15:33:40 UTC

*** This bug has been marked as a duplicate of bug 225417 ***