Git CMD - push: Update remote refs along with associated objects

命令格式

git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=<git-receive-pack>]
      [--repo=<repository>] [-f | --force] [--prune] [-v | --verbose]
      [-u | --set-upstream]
      [--[no-]signed|--sign=(true|false|if-asked)]
      [--force-with-lease[=<refname>[:<expect>]]]
      [--no-verify] [<repository> [<refspec>…​]]

 

命令参数

-q, --quiet
  安静模式。

-v, --verbose
  详情模式。

 

实例

a) 将本地分支 master 推送至远程仓库 origin。

$ git push origin master

 

更多

http://git-scm.com/docs/git-push

 

posted on 2015-12-31 14:35  huey2672  阅读(470)  评论(0编辑  收藏  举报