Skip to content
Go back

Git 的学习记录

Updated:
Edit page

如何使用 git 拉取部分文件

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

下面都来自 stackoverflow2


如何修改 author 信息

目前我开启了 Block command line pushes that expose my email 功能, 所以常常会有需要修改 commit 的要求

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

  4. https://docs.github.com/en/account-and-profile/how-tos/email-preferences/setting-your-commit-email-address


Edit page
Share this post on:

Previous Post
安迪·威尔-挽救计划
Next Post
使用 codex gpt-5.4 系列翻译书