User Tools

Site Tools


programming:git:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
programming:git:git [2019/05/07 06:54] – created maferreiraprogramming:git:git [2019/09/27 13:41] – [Clone only one directory] maferreira
Line 1: Line 1:
-===== Clone only directory ===== +====== Git ====== 
-    git clone <git path> +===== Clone only one directory ===== 
-    cd <git directory> +  git clone <git path> 
-    git config core.sparsecheckout true +  cd <git directory> 
-    echo "<directory name>" >> .git/info/sparse-checkout +  git config core.sparsecheckout true 
-    git checkout --+  echo "<directory name>" >> .git/info/sparse-checkout 
 +  git checkout -- 
 + 
 +Reference : https://git-scm.com/book/en/v2
programming/git/git.txt · Last modified: 2022/04/12 06:19 by ateixeira