Doing git-push without origin master

前端 未结 3 819
無奈伤痛
無奈伤痛 2020-12-17 21:05

Is there a way on GIT to just do a \"git push\" and it automatically send to \"origin master\" without specify that? Just curious...

3条回答
  •  不思量自难忘°
    2020-12-17 21:38

    git push already does git push origin master when you are in master.

    git push
    

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

    http://www.kernel.org/pub/software/scm/git/docs/git-push.html

提交回复
热议问题