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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -