Cloning specific branch in repository.
Example 1
1 2 3 |
git init git remote add -t refspec remotename host:/dir.git git fetch |
Example 2
1 |
git clone -b my-branch git@github.com:user/myproject.git |
1 2 3 |
git init git remote add -t refspec remotename host:/dir.git git fetch |
1 |
git clone -b my-branch git@github.com:user/myproject.git |
You must be logged in to post a comment.