tags:

views:

4274

answers:

2

Hi,

I'm working on a local repo, theres 2 branches, the master and the feature_x

I wanna push feature_x to remote, but dont wanna push the changes on master branch.

Doing a "git push origin feature_x" from my feature_x branch (feature_x branch already exists on remote) will work?

I just don't wanna test this on my box, because I can't push to master right now.

Thanks

+6  A: 

yes, just do the following

git checkout feature_x
git push origin feature_x
cpjolicoeur
With modern git you should be able to simply "git push origin HEAD", or even "git push HEAD" to push only currently checked-out branch.
Jakub Narębski
+1  A: 

Take a look here:

link text

and here:

link text

Sounds like it would work.

al