0%

Git

Git

密码中特殊字符

1
2
!   #   $    &   '   (   )   *   +   ,   /   :   ;   =   ?   @   [   ]
%21 %23 %24 %26 %27 %28 %29 %2A %2B %2C %2F %3A %3B %3D %3F %40 %5B %5D

proxy

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# http
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080

# socks5
git config --global http.proxy "socks5://127.0.0.1:1080"
git config --global https.proxy "socks5://127.0.0.1:1080"

git config --global --unset http.proxy
git config --global --unset https.proxy

# ssh
tee ~/.ssh/config<<EOF
Host github.com
ProxyCommand connect -H 127.0.0.1:1080 %h 22
ServerAliveInterval 10
EOF

config

1
2
3
4
5
6
# 意思是 提交时 CRLF 转 LF
git config --global core.autocrlf input
git config --global http.sslVerify false
git config --global user.name "user"
git config --global user.email "email"
git config --global help.format man

key

1
ssh-keygen -t rsa -C "email" -b 4096