git push用法总结

来源:互联网 发布:此情唯有落花知 苏轼 编辑:程序博客网 时间:2024/05/29 16:24

git push: Update remote refs along with associated objects. Updates remote refs using local refs, while sending objects necessary to complete the given refs.

git push <repository> <refspec>
<repository>是远程仓库,是push操作的目的地,<repository>可以是一个URL,也可以是远程仓库的名字。
<refspec>的格式是:+src:dst,其中“+”是可选的,src是想要push的分支的名字,dst是用push更新的远程端的ref的名字。使用空的<src>进行更新会删除远程仓库中的内容。

原创粉丝点击