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

Re: [PATCH 08/10] user-manual.txt: explain better the remote(-tracking) branch terms

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 28, 2010, 19:42 UTC
Message-ID
<20101028194252.GF14212@burratino>
In-Reply-To
<1288290117-6734-9-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy wrote:
> Now that the documentation is mostly consistant in the use of "remote
> branch" Vs "remote-tracking branch"

In fact, I think this patch would be useful even before the documentation is perfectly consistent.

> , let's make this distinction explicit
> early in the user-manual.
Thanks.  It is good to maintain a clear vocabulary.
All that follows are nitpicks.
Show 26 quoted lines
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -341,30 +342,38 @@ $ git branch -r
>  Examining branches from a remote repository
>  -------------------------------------------
>
>  The "master" branch that was created at the time you cloned is a copy
>  of the HEAD in the repository that you cloned from.  That repository
>  may also have had other branches, though, and your local repository
>  keeps branches which track each of those remote branches, which you
>  can view using the "-r" option to linkgit:git-branch[1]:
>
>  ------------------------------------------------
>  $ git branch -r
>    origin/HEAD
>    origin/html
>    origin/maint
>    origin/man
>    origin/master
>    origin/next
>    origin/pu
>    origin/todo
>  ------------------------------------------------
>
> +In this case, "origin" is called a remote repository, or "remote" for
> +short.

"In this case" seems redundant (since we did not explain what other case it is being opposed to). "origin" has not been explained yet. Maybe something along these lines (sorry for my poor wording)

 The repository of origin is called a remote repository, or a "remote" for
 short.
would improve it?
>         The branches of this repository are called "remote branches"
> +from our point of view. The remote-tracking branches are created in
> +the local repository at clone time, as a copy of the remote branches.
Sentence structure.  Maybe
          The branches of this repository are called "remote branches"
  from our point of view. The remote-tracking branches listed above
  were created based on the remote branches at clone time and will be
  updated by "git fetch" and "git push".
  See <<Updating -a-repository-With-git-fetch>> for details.
Show 14 quoted lines
> +They are references that will be updated by "git fetch" (hence by "git
> +pull"), and by "git push". See
> +<<Updating-a-repository-With-git-fetch>> for details.
> +
>  You cannot check out these remote-tracking branches, but you can
>  examine them on a branch of your own, just as you would a tag:
>
>  ------------------------------------------------
>  $ git checkout -b my-todo-copy origin/todo
>  ------------------------------------------------
>
>  Note that the name "origin" is just the name that git uses by default
>  to refer to the repository that you cloned from.
> @@ -1716,14 +1725,19 @@ one step:
[...]
Show 8 quoted lines
>  -------------------------------------------------
>  $ git pull
>  -------------------------------------------------
>  
> +This command will fetch the changes from the remote branches to your
> +remote-tracking branches `origin/*`, and merge default branch in the
> +current branch.
> +
Article use.  Probably something like
	s/the changes/changes/
	s/merge default branch in/merge the default branch into/
would do.
Previous: Matthieu MoyNext: Matthieu Moy
Message 82 of 101 in “More consistant terminology ("remote-tracking branch", "not updated")”
  1. 00/11 More consistant terminology ("remote-tracking branch", "not updated")Matthieu Moy, Oct 23, 2010
  2. 01/10 Better "Changed but not updated" message in git-statusMatthieu Moy, Oct 23, 2010
  3. Jonathan NiederOct 23, 2010
  4. Matthieu MoyOct 23, 2010
  5. Jakub NarebskiOct 23, 2010
  6. 02/10 Remplace "remote tracking" with "remote-tracking"Matthieu Moy, Oct 23, 2010
  7. Jonathan NiederOct 23, 2010
  8. Jonathan NiederOct 23, 2010
  9. Matthieu MoyOct 23, 2010
  10. 03/10 Change remote tracking to remote-tracking in non-trivial placesMatthieu Moy, Oct 23, 2010
  11. Jonathan NiederOct 23, 2010
  12. Matthieu MoyOct 23, 2010
  13. 04/10 Change "tracking branch" to "remote-tracking branch"Matthieu Moy, Oct 23, 2010
  14. Jonathan NiederOct 23, 2010
  15. Matthieu MoyOct 28, 2010
  16. 05/10 Change "tracking branch" to "remote-tracking branch" in C codeMatthieu Moy, Oct 23, 2010
  17. Jonathan NiederOct 23, 2010
  18. Matthieu MoyOct 26, 2010
  19. 06/10 Change incorrect uses of "remote branch" meaning "remote-tracking"Matthieu Moy, Oct 23, 2010
  20. 07/10 Change incorrect "remote branch" to "remote tracking branch" in C codeMatthieu Moy, Oct 23, 2010
  21. Jonathan NiederOct 23, 2010
  22. Matthieu MoyOct 23, 2010
  23. 08/10 Use 'remote-tracking branch' in generated merge messagesMatthieu Moy, Oct 23, 2010
  24. Jonathan NiederOct 23, 2010
  25. Matthieu MoyOct 23, 2010
  26. 09/10 user-manual.txt: explain better the remote(-tracking) branch termsMatthieu Moy, Oct 23, 2010
  27. Jonathan NiederOct 23, 2010
  28. Matthieu MoyOct 23, 2010
  29. Thore HusfeldtOct 24, 2010
  30. Jonathan NiederOct 24, 2010
  31. Jakub NarebskiOct 24, 2010
  32. Matthieu MoyOct 26, 2010
  33. Miles BaderOct 26, 2010
  34. 10/10 git-branch.txt: mention --set-upstream as a way to change upstream configurationMatthieu Moy, Oct 23, 2010
  35. Jakub NarebskiOct 23, 2010
  36. Jonathan NiederOct 23, 2010
  37. Matthieu MoyOct 25, 2010
  38. 00/10 More consistant terminology ("remote-tracking branch", "not updated")Matthieu Moy, Oct 25, 2010
  39. 01/10 Better "Changed but not updated" message in git-statusMatthieu Moy, Oct 25, 2010
  40. 02/10 Replace "remote tracking" with "remote-tracking"Matthieu Moy, Oct 25, 2010
  41. 03/10 Change remote tracking to remote-tracking in non-trivial placesMatthieu Moy, Oct 25, 2010
  42. 04/10 Change "tracking branch" to "remote-tracking branch"Matthieu Moy, Oct 25, 2010
  43. 05/10 Change "tracking branch" to "remote-tracking branch" in C codeMatthieu Moy, Oct 25, 2010
  44. 06/10 Change incorrect uses of "remote branch" meaning "remote-tracking"Matthieu Moy, Oct 25, 2010
  45. 07/10 Change incorrect "remote branch" to "remote tracking branch" in C codeMatthieu Moy, Oct 25, 2010
  46. 08/10 Use 'remote-tracking branch' in generated merge messagesMatthieu Moy, Oct 25, 2010
  47. 09/10 user-manual.txt: explain better the remote(-tracking) branch termsMatthieu Moy, Oct 25, 2010
  48. Jay SoffianOct 26, 2010
  49. Matthieu MoyOct 26, 2010
  50. Jay SoffianOct 26, 2010
  51. Matthieu MoyOct 27, 2010
  52. user-manual.txt: explain better the remote(-tracking) branch termsMatthieu Moy, Oct 27, 2010
  53. 10/10 git-branch.txt: mention --set-upstream as a way to change upstream configurationMatthieu Moy, Oct 25, 2010
  54. Drew NorthupOct 25, 2010
  55. 00/10 More consistant terminology ("remote-tracking branch", "not updated")Matthieu Moy, Oct 28, 2010
  56. 01/10 Better "Changed but not updated" message in git-statusMatthieu Moy, Oct 28, 2010
  57. Jonathan NiederOct 28, 2010
  58. Junio C HamanoOct 28, 2010
  59. Jonathan NiederOct 28, 2010
  60. Matthieu MoyOct 28, 2010
  61. Junio C HamanoOct 28, 2010
  62. Matthieu MoyOct 28, 2010
  63. Drew NorthupOct 29, 2010
  64. Matthieu MoyOct 30, 2010
  65. 02/10 Replace "remote tracking" with "remote-tracking"Matthieu Moy, Oct 28, 2010
  66. Jonathan NiederOct 28, 2010
  67. 03/10 Change remote tracking to remote-tracking in non-trivial placesMatthieu Moy, Oct 28, 2010
  68. Jonathan NiederOct 28, 2010
  69. Matthieu MoyOct 28, 2010
  70. Jonathan NiederOct 28, 2010
  71. Matthieu MoyOct 28, 2010
  72. Drew NorthupOct 29, 2010
  73. 04/10 Change "tracking branch" to "remote-tracking branch"Matthieu Moy, Oct 28, 2010
  74. Jonathan NiederOct 28, 2010
  75. 05/10 Change incorrect uses of "remote branch" meaning "remote-tracking"Matthieu Moy, Oct 28, 2010
  76. 06/10 Change incorrect "remote branch" to "remote tracking branch" in C codeMatthieu Moy, Oct 28, 2010
  77. Jonathan NiederOct 28, 2010
  78. Matthieu MoyOct 28, 2010
  79. Jonathan NiederOct 28, 2010
  80. 07/10 Use 'remote-tracking branch' in generated merge messagesMatthieu Moy, Oct 28, 2010
  81. 08/10 user-manual.txt: explain better the remote(-tracking) branch termsMatthieu Moy, Oct 28, 2010
  82. Jonathan NiederOct 28, 2010
  83. Matthieu MoyOct 28, 2010
  84. 09/10 user-manual: remote-tracking can be checked out, with detached HEADMatthieu Moy, Oct 28, 2010
  85. 10/10 git-branch.txt: mention --set-upstream as a way to change upstream configurationMatthieu Moy, Oct 28, 2010
  86. Jonathan NiederOct 28, 2010
  87. 00/11 More consistant terminologyMatthieu Moy, Oct 30, 2010
  88. Jonathan NiederOct 30, 2010
  89. 01/11 Better "Changed but not updated" message in git-statusMatthieu Moy, Oct 30, 2010
  90. 02/11 Replace "remote tracking" with "remote-tracking"Matthieu Moy, Oct 30, 2010
  91. 03/11 Change remote tracking to remote-tracking in non-trivial placesMatthieu Moy, Oct 30, 2010
  92. 04/11 everyday.txt: change "tracking branch" to "remote-tracking branch"Matthieu Moy, Oct 30, 2010
  93. 05/11 Change "tracking branch" to "remote-tracking branch"Matthieu Moy, Oct 30, 2010
  94. 06/11 Change incorrect uses of "remote branch" meaning "remote-tracking"Matthieu Moy, Oct 30, 2010
  95. 07/11 Change incorrect "remote branch" to "remote tracking branch" in C codeMatthieu Moy, Oct 30, 2010
  96. 08/11 Use 'remote-tracking branch' in generated merge messagesMatthieu Moy, Oct 30, 2010
  97. 09/11 user-manual.txt: explain better the remote(-tracking) branch termsMatthieu Moy, Oct 30, 2010
  98. Jonathan NiederOct 30, 2010
  99. Matthieu MoyOct 31, 2010
  100. 10/11 user-manual: remote-tracking can be checked out, with detached HEADMatthieu Moy, Oct 30, 2010
  101. 11/11 git-branch.txt: mention --set-upstream as a way to change upstream configurationMatthieu Moy, Oct 30, 2010

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.