When studying programming using reference books, it’s convenient to git clone
only a specific directory and proceed with your learning!
This time, I’ll make a note of this method.
$ mkdir confetti_cuisine
$ cd confetti_cuisine
confetti_cuisine $ git init
confetti_cuisine $ git config core.sparseCheckout true
confetti_cuisine $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
sparsecheckout = true
confetti_cuisine $ git remote add origin https://github.com/JonathanWexler/get-programming-with-nodejs.git
confetti_cuisine $ cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
sparsecheckout = true
[remote "origin"]
url = https://github.com/JonathanWexler/get-programming-with-nodejs.git
fetch = +refs/heads/*:refs/remotes/origin/*
confetti_cuisine $ echo /unit_1/lesson_7_capstone/start/confetti_cuisine/ > .git/info/sparse-checkout
confetti_cuisine $ git pull origin master