How to create and share remote branches? #21693
Answered
by
LyzV
LyzV
asked this question in
New to GitHub
-
How to create and share remote branches? I want to publish a local branch for future collaborative development. How to do it right? Several developers will insert changes into this branch. For exampe: Host 1: git branch master git push origin ideaHost 2: git pull origingit checkout originj/ideagit brunch ideanano … make profitgit commit -a -m “profit”git push origin ideaBut something is wrong. We can not post changes. I read the documentation, is there something about --set-upstream-to, but understood nothing :slight_smile: |
Beta Was this translation helpful? Give feedback.
Answered by
LyzV
Jun 21, 2019
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you. And another user use: git fetch origingit checkout -b idea origin/idea |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.
And another user use:
git fetch origin
git checkout -b idea origin/idea