I have 1 repository and inside 3 branches of AB C. I also created an empty new repository.
How can I take branch B and add it as the main repository?
Or how can I copy branch B, like a normal project, to a computer without any other branches, etc.?
I have 1 repository and inside 3 branches of AB C. I also created an empty new repository.
How can I take branch B and add it as the main repository?
Or how can I copy branch B, like a normal project, to a computer without any other branches, etc.?
How can I copy branch B as a normal project to a computer? Without any other branches
clone only one (- single --single-branch ) branch- ΠΈΠΌΡ-Π²Π΅ΡΠΊΠΈ from the repository of the url-Ρ
ΡΠ°Π½ΠΈΠ»ΠΈΡΠ° to the ΠΊΠ°ΡΠ°Π»ΠΎΠ³-ΠΊΡΠ΄Π°-ΠΊΠ»ΠΎΠ½ΠΈΡΠΎΠ²Π°ΡΡ :
$ git clone --single-branch -b ΠΈΠΌΡ-Π²Π΅ΡΠΊΠΈ url-Ρ
ΡΠ°Π½ΠΈΠ»ΠΈΡΠ° ΠΊΠ°ΡΠ°Π»ΠΎΠ³-ΠΊΡΠ΄Π°-ΠΊΠ»ΠΎΠ½ΠΈΡΠΎΠ²Π°ΡΡ Source: https://ru.stackoverflow.com/questions/684420/
All Articles