git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/1] doc/gitcore-tutorial: fix prose to match example command

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 8, 2020, 16:57 UTC
Message-ID
<xmqqr2093my6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<0c75cd8f9727b10af6f6a804177e551ba0217abf.1578443496.git.gitgitgadget@gmail.com>
"Heba Waly via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 25 quoted lines
> From: Heba Waly <heba.waly@gmail.com>
>
> In 328c6cb853 (doc: promote "git switch", 2019-03-29), an example
> was changed to use "git switch" rather than "git checkout" but an
> instance of "git checkout" in the explanatory text preceding the
> example was overlooked. Fix this oversight.
>
> Signed-off-by: Heba Waly <heba.waly@gmail.com>
> ---
>  Documentation/gitcore-tutorial.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/gitcore-tutorial.txt b/Documentation/gitcore-tutorial.txt
> index f880d21dfb..c0b95256cc 100644
> --- a/Documentation/gitcore-tutorial.txt
> +++ b/Documentation/gitcore-tutorial.txt
> @@ -751,7 +751,7 @@ to it.
>  ================================================
>  If you make the decision to start your new branch at some
>  other point in the history than the current `HEAD`, you can do so by
> -just telling 'git checkout' what the base of the checkout would be.
> +just telling 'git switch' what the base of the checkout would be.
>  In other words, if you have an earlier tag or branch, you'd just do
>  
>  ------------

Thanks. The part before this paragraph does illustrate the use of "switch", and we should talk about that command here, too.

Previous: Heba Waly via GitGitGadget
Message 8 of 8 in “[Outreachy] doc: fix a typo in gitcore-tutorial.txt”
  1. 0/1 [Outreachy] doc: fix a typo in gitcore-tutorial.txtHeba Waly via GitGitGadget, Jan 7, 2020
  2. 1/1 doc: fix a typo in gitcore-tutorial.txtHeba Waly via GitGitGadget, Jan 7, 2020
  3. Eric SunshineJan 7, 2020
  4. Junio C HamanoJan 7, 2020
  5. Heba WalyJan 8, 2020
  6. 0/1 [Outreachy] doc/gitcore-tutorial: fix prose to match example commandHeba Waly via GitGitGadget, Jan 8, 2020
  7. 1/1 doc/gitcore-tutorial: fix prose to match example commandHeba Waly via GitGitGadget, Jan 8, 2020
  8. Junio C HamanoJan 8, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.