本文不做过多讲解,不懂的内容请留言

Git.HTTP/S 加速

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cat ~/.gitconfig
[user]
email = github-actions[bot]@users.noreply.github.com
name = github-actions[bot]
[http]
proxy = socks5://127.0.0.1:7890
proxy = http://127.0.0.1:7890
[https]
proxy = socks5://127.0.0.1:7890
proxy = https://127.0.0.1:7890
[core]
excludesfile = /Users/xr/.gitignore
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

Git.SSH 加速

1
2
3
4
5
6
7
➜  Downloads cat ~/.ssh/config
Host github.com
HostName ssh.github.com
User git
Port 443
TCPKeepAlive yes
Proxycommand /usr/local/bin/ncat --proxy 127.0.0.1:7890 --proxy-type socks5 %h %p

凑数的

1
2
3
4
5
6
7
8
9
10
11
cat ~/.gitignore
.DS_Store
*/.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
Icon
.idea

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way