From: Oleg Broytman Date: Mon, 8 Jun 2015 22:13:03 +0000 (+0300) Subject: Add more details about initial cloning X-Git-Url: https://git.phdru.name/?p=git-wiki.git;a=commitdiff_plain;h=6cb1d97f59fdcb29ec870b23712ef3b389cd5514 Add more details about initial cloning --- diff --git a/pep-git.txt b/pep-git.txt index 6365fb8..5f1c1c9 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -118,10 +118,15 @@ done something like that:: $ cd python $ git branch v1 origin/v1 +The first command clones remote repository into local directory +`python``, creates a new local branch v2, sets remotes/origin/v2 as +its upstream remote branch and checks it out into the working +directory. + The last command creates a new local branch v1 and sets remotes/origin/v1 as its upstream remote branch. -The same result can achieved with commands:: +The same result can be achieved with commands:: $ git clone -b v1 http://git.python.org/python.git $ cd python