git config --global credential.helper cache

 git config --global credential.helper --timeout 9000

--timeout <time_second>


- Reference

https://git-scm.com/book/ko/v2/Git-%EB%8F%84%EA%B5%AC-Credential-%EC%A0%80%EC%9E%A5%EC%86%8C#_credential_caching

How to clone a sub-directory only of a Git respository

 mkdir <repo>

cd <repo>

git init

git remote add -f origin <url>

git config core.sparseCheckout true

echo "some/dir/" >> .git/info/sparse-checkout

echo "another/sub/tree" >> .git/info/sparse-checkout

git pull origin master


-Reference

https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository

+ Recent posts