[英]How to configure git repository so a branch other than master is checked out after a cloning?
[英]Cloning a branch other than master on GitHub
在GitHub上,如果我有兩個分支, master
和master_copy
。 我有辦法克隆master_copy
分支而不是master
分支嗎?
即使選擇master_copy
,當我獲得到克隆庫的鏈接時,它也只提供了master
分支鏈接。
所有分支都位於存儲庫中,即master和master_copy-這使git可以在沒有中央服務器的情況下進行分布式工作。
克隆存儲庫后,只需執行以下操作:
git checkout master_copy
並且您將使用master_copy分支。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.