Skip to content
Go back

如何使用 git 拉取部分文件

Updated:
Edit page

有时候需要 clone 一些仓库到本地来查看或者修改,但是对于 https://github.com/eugenp/tutorialshttps://github.com/raycast/extensions 的仓库来说,全量下载就不是一个好选择(尤其是对国内复杂的网络环境来说),然后我发现了 git-sparse-checkout1(虽说 cargo 就有 spare checkout 但是没意识到 🤣 )

下面都来自 stackoverflow2

Footnotes

  1. https://git-scm.com/docs/git-sparse-checkout

  2. https://stackoverflow.com/a/73254328/6699096

  3. https://git-scm.com/docs/git-clone


Edit page
Share this post on:

Previous Post
流水账:给 blog 加上 aplayer
Next Post
Pick the Right Distroless Base Image For Your Application