luoziluojun
luoziluojun

Reputation: 126

how to merge branch but do not checkout branch

I have 3 branches:master,dev and test,on branch test how can I merge dev to master.for some reason I can't checkout to master.

Upvotes: 1

Views: 57

Answers (1)

Roman Marusyk
Roman Marusyk

Reputation: 24579

try this

git fetch . dev:master

The syntax of command is

git fetch <remote> <source>:<destination>

Upvotes: 1

Related Questions