Skip to content

Commit faa7815

Browse files
Piotr GregorJohn Kacur
Piotr Gregor
authored and
John Kacur
committed
README: Added info about setting branch --tracking
To setup remote tracking of the branch stable/v1.0 git checkout with --track option can be used: git checkout -b stable/v1.0 --track origin/stable/v1.0 Otherwise when git checkout -b stable/v1.0 is used branch may not be properly set up to track it's remote counterpart (given git option) and users may be confused due to no files present in the folder, but README. Signed-off-by: Piotr Gregor <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: John Kacur <[email protected]>
1 parent d43c5e7 commit faa7815

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README

+16
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,19 @@ The master branch is unused. You should use an existing branch instead.
44

55
The stable/v1.0 branch contains the old stable version.
66
The unstable/devel branches contain the development versions.
7+
8+
9+
BRANCH CHECKOUT
10+
11+
To list available branches for tracking please do:
12+
git branch -r
13+
14+
To checkout stable/v1.0 and setup remote tracking to /origin/stable/v1.0 please do:
15+
git checkout -b stable/v1.0 origin/stable/v1.0
16+
or
17+
git checkout -b stable/v1.0 --track origin/stable/v1.0
18+
19+
Older versions of git will not work with git checkout stable/v1.0.
20+
21+
Similarly for the unstable/devel/v1.1.1 branch please do:
22+
git checkout -b unstable/devel/v1.1.1 --track origin/unstable/devel/v1.1.1

0 commit comments

Comments
 (0)