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

[PATCH 1/5] user-manual: update for new default --track behavior

From
JFJ. Bruce Fields <bfields@citi.umich.edu>
Date
Aug 6, 2007, 04:33 UTC
Message-ID
<24774.838719941$1186374891@news.gmane.org>
In-Reply-To
<11863748422001-git-send-email->
From: J. Bruce Fields <bfields@pig.linuxdev.us.dell.com>
Update documentation to reflect the --track default.

That change seems to have happened in the 1.5.3 -rc's, so bump the "for version x.y.z or newer" warning as well.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
---
 Documentation/user-manual.txt |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 0071cd0..c0820e9 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -1,4 +1,4 @@
-Git User's Manual (for version 1.5.1 or newer)
+Git User's Manual (for version 1.5.3 or newer)
 ______________________________________________
 
 
@@ -1667,24 +1667,19 @@ one step:
 $ git pull origin master
 -------------------------------------------------
 
-In fact, "origin" is normally the default repository to pull from,
-and the default branch is normally the HEAD of the remote repository,
-so often you can accomplish the above with just
+In fact, if you have "master" checked out, then by default "git pull"
+merges from the HEAD branch of the origin repository.  So often you can
+accomplish the above with just a simple
 
 -------------------------------------------------
 $ git pull
 -------------------------------------------------
 
-See the descriptions of the branch.<name>.remote and branch.<name>.merge
-options in gitlink:git-config[1] to learn how to control these defaults
-depending on the current branch.  Also note that the --track option to
-gitlink:git-branch[1] and gitlink:git-checkout[1] can be used to
-automatically set the default remote branch to pull from at the time
-that a branch is created:
-
--------------------------------------------------
-$ git checkout --track -b maint origin/maint
--------------------------------------------------
+More generally, a branch that is created from a remote branch will pull
+by default from that branch.  See the descriptions of the
+branch.<name>.remote and branch.<name>.merge options in
+gitlink:git-config[1], and the discussion of the --track option in
+gitlink:git-checkout[1], to learn how to control these defaults.
 
 In addition to saving you keystrokes, "git pull" also helps you by
 producing a default commit message documenting the branch and
-- 
1.5.3.GIT
Next: J. Bruce Fields
Message 1 of 5 in “user-manual: update for new default --track behavior”
  1. 1/5 user-manual: update for new default --track behaviorJ. Bruce Fields, Aug 6, 2007
  2. 2/5 user-manual: mention git stashJ. Bruce Fields, Aug 6, 2007
  3. 3/5 user-manual: mention git-guiJ. Bruce Fields, Aug 6, 2007
  4. 4/5 documentation: use the word "index" in the git-add manual pageJ. Bruce Fields, Aug 6, 2007
  5. 5/5 documentation: use the word "index" in the git-commit man pageJ. Bruce Fields, Aug 6, 2007

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.