mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
documentation/dev-manual/dev-manual-newbie.xml: Tag example fixed
The example that creates a local branch based on a release tag in the "Repositories, Tags, and Branches" section was not optimal. Darren Hart informed me that naming a local branch the same name as a tag confuses Git. Plus, the "-b" option was mis-placed. Renamed the local branch to have "my-" in front of it and moved the "-b" option earlier in the command. (From yocto-docs rev: 29f4ea267ef687431e09eca4634fcb6cc48a6f81) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
88b3ff0951
commit
661acaec76
@@ -579,14 +579,14 @@
|
||||
$ cd ~
|
||||
$ git clone git://git.yoctoproject.org/poky
|
||||
$ cd poky
|
||||
$ git checkout &DISTRO_NAME;-&POKYVERSION; -b &DISTRO_NAME;-&POKYVERSION;
|
||||
$ git checkout -b my-&DISTRO_NAME;-&POKYVERSION; &DISTRO_NAME;-&POKYVERSION;
|
||||
</literallayout>
|
||||
In this example, the name of the top-level directory of your local Yocto Project
|
||||
Files Git repository is <filename>poky</filename>.
|
||||
And, the name of the local branch you have created and checked out is
|
||||
<filename>&DISTRO_NAME;-&POKYVERSION;</filename>.
|
||||
<filename>my-&DISTRO_NAME;-&POKYVERSION;</filename>.
|
||||
The files in your repository now exactly match the Yocto Project &DISTRO;
|
||||
Release tag (&DISTRO_NAME;).
|
||||
Release tag (<filename>&DISTRO_NAME;-&POKYVERSION;</filename>).
|
||||
It is important to understand that when you create and checkout a local
|
||||
working branch based on a tag, your environment matches a specific point
|
||||
in time and not a development branch.
|
||||
|
||||
Reference in New Issue
Block a user