summaryrefslogtreecommitdiff
path: root/Documentation/git-clone.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-09-07 15:24:53 -0700
committerJunio C Hamano <gitster@pobox.com>2009-09-07 15:24:53 -0700
commit2da9f8e370b08d4786e33ec95a07a4d6104eb83a (patch)
tree7c4d2760f4c4c0a42909ca3dd40e5426b9bf9f51 /Documentation/git-clone.txt
parente4d1afbcf2e39a997ae90befd629ee53e444c4c9 (diff)
parent7a4ee28f41270bf032d0dd0bfb17f601b9b3971a (diff)
downloadgit-2da9f8e370b08d4786e33ec95a07a4d6104eb83a.tar.gz
Merge branch 'jk/clone-b'
* jk/clone-b: clone: add --branch option to select a different HEAD
Diffstat (limited to 'Documentation/git-clone.txt')
-rw-r--r--Documentation/git-clone.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 2e0785e1de..f23100e509 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -127,6 +127,13 @@ objects from the source repository into a pack in the cloned repository.
Instead of using the remote name 'origin' to keep track
of the upstream repository, use <name>.
+--branch <name>::
+-b <name>::
+ Instead of pointing the newly created HEAD to the branch pointed
+ to by the cloned repositoroy's HEAD, point to <name> branch
+ instead. In a non-bare repository, this is the branch that will
+ be checked out.
+
--upload-pack <upload-pack>::
-u <upload-pack>::
When given, and the repository to clone from is accessed