你如何推一个Git分支(没有其他分支)?(How do you push just a single Git branch (and no other branches)?)
我在一个本地git仓库工作。 有两个分支, master和feature_x 。
我想将feature_x推送到远程备份,但是我不想在master分支上推送更改。
将来自我的feature_x分支( feature_x分支已经存在于远程的)上的git push origin feature_x工作吗?
我不想在我的盒子上测试,因为我现在不能推动主人。
I am working on a local git repository. There are two branches, master and feature_x.
I want to push feature_x to the remote repo, but I do not want to push the changes on the master branch.
Will a git push origin feature_x from my feature_x branch (feature_x branch already exists on remote) work?
I do not want to test this on my box, because I cannot push to master right now.
最满意答案
是的,只是做以下
git checkout feature_x git push origin feature_xyes, just do the following
git checkout feature_x git push origin feature_x更多推荐
发布评论