git - Just download content of remote branch , not the repository -
this question has answer here:
- using git latest revision 2 answers
do have anyway download content of branch , , not repository. need branch build on server, interested in files not repository stuff.
you should use --single-branch
modifier git clone. supposing branch called my_branch
$ git clone --single-branch --branch my_branch
this download history branch. using --depth
modifier, can recent revisions:
$ git clone --depth 1 --single-branch --branch my_branch
Comments
Post a Comment