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
From stackoverflow
-
yes, just do the following
git checkout feature_x git push origin feature_x
Jakub Narębski : 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. -
Take a look here:
and here:
Sounds like it would work.
0 comments:
Post a Comment