git 起步
· 阅读需 1 分钟
-
设置用户名和邮箱
git config --global user.name "Your Name"
git config --global user.email "your_email@example.com" -
生成 ssh 密钥
ssh-keygen -t ed25519 -C "your_email@example.com" -
设置代理
git config --global http.proxy http://proxyusername:proxypassword@proxy.server.com:port
git config --global https.proxy https://proxyusername:proxypassword@proxy.server.com:port