Skip to content

git:pull[,origin, [, remote[: locale]]] #7

@stack-wuh

Description

@stack-wuh

Git 中指定拉取某一个分支的更新

origin

代表, 可以通过 git remote 获取该项目下的全部源, 如下:
Step1
所以命令可以这样敲:

git pull origin

与push的指令相反, 推送的时候冒号前面的指的是本地分支名,冒号后指的是远程分支名如下:

# 如果分支同名可以省略冒号后面的远程分支名
git push -u dev[,:master] 

remote

remote 表示远程分支名

git pull origin remote

locale

locale表示本地分支名

git pull origin:locale

上面代码表示拉取远程的remote分支的更新至本地的locale分支

Metadata

Metadata

Assignees

Labels

Gitoperate for git

Projects

Status

utils

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions