参考書などでプログラミングの勉強をする時に便利なのが、特定のディレクトリだけgit clone
して、学習を進めて行くこと!
今回は、この方法をメモしておきます。
$ 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