Merge branch 'ss/svn-prompt'
[gitweb.git] / Documentation / git-checkout.txt
index ad33eb49ae79dd3d100b5512a696635957be1af3..6f04d22f5e15ea0805fb44c9c856952d759bc050 100644 (file)
@@ -28,6 +28,14 @@ branch.
        working tree are kept, so that they can be committed to the
        <branch>.
 +
+If <branch> is not found but there does exist a tracking branch in
+exactly one remote (call it <remote>) with a matching name, treat as
+equivalent to
++
+------------
+$ git checkout -b <branch> --track <remote>/<branch>
+------------
++
 You could omit <branch>, in which case the command degenerates to
 "check out the current branch", which is a glorified no-op with a
 rather expensive side-effects to show only the tracking information,