准备工作
- 1. 安装Tor:你需要安装Tor,安装完成后,打开Tor,等待其连接成功。
- 2. 安装Git:安装Git,安装完成后,打开Git,等待其连接成功。
设置GitHub
- 1. 登录GitHub:登录GitHub,访问你的GitHub页面,点击“Settings”,在“Settings”页面,点击“SSH and GPG Keys”。
- 2. 添加SSH Key:点击“New SSH Key”,在“New SSH Key”页面,输入title,在key文本框中,输入你的SSH Key,点击“Add SSH Key”按钮,完成添加。
设置Git
- 1. 配置Git:在Git Bash中,输入以下命令,来配置Git:
$ git config --global user.name "Your Name"
$ git config --global user.email "your_email@example.com"
- 2. 设置代理:在Git Bash中,输入以下命令,来设置代理:
$ git config --global http.proxy "socks5://127.0.0.1:9050"
$ git config --global https.proxy "socks5://127.0.0.1:9050"
提交和推送
- 1. 提交:在Git Bash中,输入以下命令,来提交文件:
$ git add .
$ git commit -m "Your commit message"
- 2. 推送:在Git Bash中,输入以下命令,来推送文件:
$ git push origin master