与使用 SSH 相比,使用 HTTPS 远程 URL 具有一些优势。 它比 SSH 更容易设置,通常通过严格的防火墙和代理进行工作。 但是,每次拉取或推送仓库时,它也会提示您输入 GitHub 凭据。
通过配置 Git 为您缓存凭据,您可以避免提示输入密码。 不建议使用基于密码的 Git 身份验证,我们建议在提示输入密码时使用个人访问令牌,因为这样更安全。 像对待密码一样对待令牌。 更多信息请参阅“创建个人访问令牌”。
在配置凭据缓存后,当您使用 HTTPS 拉取或推送仓库时,Git 会自动使用缓存的个人访问令牌代替密码。

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
