git - Just download content of remote branch , not the repository -


this question has answer here:

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

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -