Git Tips
Git ssh push 超时
修改 ~/.git/config
文件
# Add section below to it
Host github.com
Hostname ssh.github.com
Port 443
将 push 的端口从 22 改成 443,有可能绕过 GFW
测试
22 端口超时
$ ssh -T git@github.com
ssh: connect to …
修改 ~/.git/config
文件
# Add section below to it
Host github.com
Hostname ssh.github.com
Port 443
将 push 的端口从 22 改成 443,有可能绕过 GFW
22 端口超时
$ ssh -T git@github.com
ssh: connect to …
摘要:
git submodule
就是git主仓库在本仓库的配置中记录着子模块仓库对应的名字,路径,远端url,然后创建一个特殊文件去记录子模块仓库目前的commit-id
,每次更新子模块就是通过远端路径和commit-id
来进行更新