Le mar. 26 mai 2020 à 11:46, Kunal Chauhan <atkunalchau...@gmail.com> a
écrit :

Hi

By default current branch is master on remote repository. When you clone
the repository, you get all remote branches and one local branche, master,
which is synchronized with origin/master.
You can change this default.

Example : git clone -b next <url>. Then will get one local branch which is
next synchronized with origin/next

$ git clone <url>
$ git branch -a
master
origin/master
origin/next
origin/archive

$ git clone -b next wurl
$ git branch -a
next
origin/master
origin/next
origin/archive



Hi Team,
>
> I have gone through doc of git but not clear usage of git clone -b http://
> /path
>
> please can I have some practical example
>
> *Thks*
> *kunal*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-users/CACEFAc07uXx4vk3cwqZpwBo167MCoe1x5YdGEq-VHL07AP4jwQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/git-users/CACEFAc07uXx4vk3cwqZpwBo167MCoe1x5YdGEq-VHL07AP4jwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Anne NICOLAS-VELU

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CACYHsMx9pBA5LTA4TXgFgGFB9HiiE4h7m1SqnZkToKgBPPgADg%40mail.gmail.com.

Reply via email to