1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 00:39:46 +00:00

dev-manual: Updated checkout by branch

Example was incorrect. Fixed it.

(From yocto-docs rev: 7ae1c636e7a8c0448515f339476327bcaf21e63c)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Kristi Rifenbark
2017-06-20 17:44:33 -07:00
committed by Richard Purdie
parent d634fa2e9d
commit 33b507e995
@@ -398,8 +398,9 @@
For example, to access the files for the Yocto Project For example, to access the files for the Yocto Project
2.3 Release (Pyro), use the following command: 2.3 Release (Pyro), use the following command:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git checkout -b origin/pyro $ git checkout -b pyro origin/pyro
Switched to a new branch 'origin/pyro' Branch pyro set up to track remote branch pyro from origin.
Switched to a new branch 'pyro'
</literallayout> </literallayout>
The previous command checks out the "pyro" branch and The previous command checks out the "pyro" branch and
reports that the branch is tracking the upstream reports that the branch is tracking the upstream
@@ -412,7 +413,7 @@
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ git branch $ git branch
master master
* origin/pyro * pyro
</literallayout> </literallayout>
</para></listitem> </para></listitem>
</orderedlist> </orderedlist>