Git clone does not bring master branch

后端 未结 3 1423
灰色年华
灰色年华 2021-01-12 12:30

I have a remote repository http://github.com/fernandezpablo85/Test

This repo has a master branch, but it\'s behind two other branches so when I clone it

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-12 13:00

    If you only want to clone the master branch, then run this command:

    git clone git@github.com:**username**/ **Repository URL** -b master
    

    Here is an example:

    git clone git@github.com:gfranko/jquery.selectBoxIt.js.git -b master
    

提交回复
热议问题