Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更改本地分支对应的远程分支 #34

Open
deepthan opened this issue Apr 16, 2018 · 0 comments
Open

更改本地分支对应的远程分支 #34

deepthan opened this issue Apr 16, 2018 · 0 comments

Comments

@deepthan
Copy link
Owner

deepthan commented Apr 16, 2018

一开始拉代码下来的时候,本地新建个dev分支是对应远程的dev分支(即origin/dev),那么我想更改本地dev分支关联线上的master分支:

git branch --set-upstream-to=origin/master dev

dev为本地分支,origin/master为远程分支
也可以这样写:

git branch --set-upstream dev origin/master 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant