【Git】---git push命令

语法

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

描述

将本地分支的更新,推送到远程分支上。

参数

<repository>

The "remote" repository that is destination of a push operation. 即远程仓库的名字。

<refspec>…

Specify what destination ref to update with what source object. 格式为 <src>:<dst>,即本地分支和远程分支的名字。

例子

1.

$ git push origin master:master

将本地分支master的更新,推送到远程仓库origin中的master分支上。

2.

$ git push origin

将当前分支的更新推送到远程仓库origin中的对应分支上。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值