Bureaucrats, confirmed, Administrators
4,558
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Checkout a specific branch from origin, and track it. | |||
What if you enter <code>git checkout -b REL1_29</code> when you *should have entered* <code>git checkout -b REL1_29 origin/REL1_29</code>? Just tell git that you meant to track the branch in origin: <code>git branch --set-upstream-to=origin/REL1_29 REL1_29</code> | |||
Add <code>GIT_TRACE=1</code> to your command to see more of what's going on. (Note that there are no spaces and no semicolon.) | Add <code>GIT_TRACE=1</code> to your command to see more of what's going on. (Note that there are no spaces and no semicolon.) | ||
<source lang="bash"> | <source lang="bash"> |