跳到主要内容

git 起步

· 阅读需 1 分钟
1adybug
子虚伊人
  1. 设置用户名和邮箱

    git config --global user.name "Your Name"
    git config --global user.email "your_email@example.com"
  2. 生成 ssh 密钥

    ssh-keygen -t ed25519 -C "your_email@example.com"
  3. 设置代理

    git config --global http.proxy http://proxyusername:proxypassword@proxy.server.com:port
    git config --global https.proxy https://proxyusername:proxypassword@proxy.server.com:port