设置本地代理

1
2
3
4
5
6
7
8
9
10
11
# 设置HTTP代理
git config --global http.proxy http://127.0.0.1:1080

# 设置HTTPS代理
git config --global https.proxy http://127.0.0.1:1080

# 重置HTTP代理
git config --global --unset http.proxy

# 重置HTTPS代理
git config --global --unset https.proxy

如果你使用的是ss,则需要将协议换为socks5

1
2
3
git config --global http.proxy 'socks5://127.0.0.1:1080'

git config --global https.proxy 'socks5://127.0.0.1:1080'

针对特定网址设置代理

1
2
3
4
5
# 针对特定网址,例如:Github
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

# 取消代理
git config --global --unset http.https://github.com.proxy

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment