文章列表: 1 篇
2025-10-24
Git 配置PAT
2025-10-24 ~ 2025-10-24

The note is partly generated by “ChatGPT.”

The article “Proxy set, but ssh -T git@github.com still fails” explains that Git SSH cannot use an HTTP proxy and provides a solution. However, in my experience, even using that solution, network performance can be unreliable. Therefore, if you can use HTTPS for Git, I recommend switching from SSH to HTTPS directly. Below is the method to switch to HTTPS and configure a Personal Access Token (PAT) for authentication.