1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

overview-manual: Updated checkout example for Git based on a tag.

(From yocto-docs rev: ee0021b0db85ced7a36b0f25e1c1e09a0f5b1894)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2018-04-24 12:41:47 -07:00
committed by Richard Purdie
parent 3a4c4c9deb
commit f679e515f3
@@ -696,8 +696,8 @@
$ cd ~ $ cd ~
$ git clone git://git.yoctoproject.org/poky $ git clone git://git.yoctoproject.org/poky
$ cd poky $ cd poky
$ git fetch --all --tags --prune $ git fetch --tags
$ git checkout tags/pyro-17.0.0 -b my-pyro-17.0.0 $ git checkout tags/rocko-18.0.0 -b my_rocko-18.0.0
</literallayout> </literallayout>
In this example, the name of the top-level directory of your In this example, the name of the top-level directory of your
local Yocto Project repository is <filename>poky</filename>. local Yocto Project repository is <filename>poky</filename>.
@@ -705,9 +705,9 @@
<filename>git fetch</filename> command makes all the upstream <filename>git fetch</filename> command makes all the upstream
tags available locally in your repository. tags available locally in your repository.
Finally, the <filename>git checkout</filename> command Finally, the <filename>git checkout</filename> command
creates and checks out a branch named "my-pyro-17.0.0" that is creates and checks out a branch named "my-rocko-18.0.0" that is
based on the upstream branch whose "HEAD" matches the based on the upstream branch whose "HEAD" matches the
commit in the repository associated with the "pyro-17.0.0" tag. commit in the repository associated with the "rocko-18.0.0" tag.
The files in your repository now exactly match that particular The files in your repository now exactly match that particular
Yocto Project release as it is tagged in the upstream Git Yocto Project release as it is tagged in the upstream Git
repository. repository.