“Profundidade do clone git” Respostas de código

Profundidade do clone git

$ git clone --depth 1 https://github.com/dogescript/xxxxxxx.git
$ git remote set-branches origin 'remote_branch_name'
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name
Precious Peacock

clone raso

How to Execute Git Shallow Clone
Provide an argument of -- depth 1 to the git clone command to copy only the latest revision of a repo:

git clone -–depth [depth] [remote-url]
 

You can also use git shallow clone to access a single branch:

git clone [remote-url] --branch [name] --single-branch [folder]
 

With git shallow clone you get fewer files. And as a result, they clone faster. Builds and feedback can be delivered quicker.
Nice Newt

Respostas semelhantes a “Profundidade do clone git”

Perguntas semelhantes a “Profundidade do clone git”

Mais respostas relacionadas para “Profundidade do clone git” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código