Default behavior of “git push” without a branch specified

前端 未结 12 1198
眼角桃花
眼角桃花 2020-11-22 05:32

I use the following command to push to my remote branch:

git push origin sandbox

If I say

git push origin

12条回答
  •  别那么骄傲
    2020-11-22 06:22

    git push origin will push all changes on the local branches that have matching remote branches at origin As for git push

    Works like git push , where is the current branch's remote (or origin, if no remote is configured for the current branch).

    From the Examples section of the git-push man page

提交回复
热议问题