diff --git a/source/_posts/Git.md b/source/_posts/Git.md index 807a99b..a559b26 100644 --- a/source/_posts/Git.md +++ b/source/_posts/Git.md @@ -1,3 +1,12 @@ +--- +title: Git +date: 2023-10-23 10:30:31 +author: 文永达 +top_img: https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper/abstract/67239FBB-E15D-4F4F-8EE8-0F1C9F3C4E7C.jpeg +--- + + + # Git ## Git 全局设置: @@ -73,3 +82,33 @@ git config --global credential.helper wincred ## 储藏 (Stash) +# github + +## push/pull老是超时解决方法 + +**设置针对github.com本身(如果你需要代理的仓库,都是github上面的,只要设置这个)的代理:** + +```shell +#只对github.com +# 找到自己的代理的port的4个数字的端口就行,不一定是1080口的 +git config --global http.https://github.com.proxy socks5://127.0.0.1:7890 +#上面是别人的,如果你的代理是http类型的,如下设置: +git config --global http.https://github.com.proxy 'http://127.0.0.1:代理的port' + +#取消代理 +git config --global --unset http.https://github.com.proxy +``` + +**针对所有仓库(包含github.com之外的仓库的代理)** + +```shell +# 找到自己的代理的port的4个数字的端口就行,不一定是1080口的 +git config --global http.proxy 'socks5://127.0.0.1:1080' +git config --global https.proxy 'socks5://127.0.0.1:1080' + +#上面是别人的,如果你的代理是http类型的,如下设置: +# 找到自己的代理的port的4个数字的端口就行,不一定是1080口的 +git config --global http.proxy 'http://127.0.0.1:代理的port' +git config --global https.proxy 'http://127.0.0.1:代理的port' +``` + diff --git a/source/_posts/MySQL.md b/source/_posts/MySQL.md index 1ec535f..1b54ad6 100644 --- a/source/_posts/MySQL.md +++ b/source/_posts/MySQL.md @@ -1,3 +1,10 @@ +--- +title: MySQL +date: 2023-09-23 10:30:31 +author: 文永达 +top_img: https://gcore.jsdelivr.net/gh/volantis-x/cdn-wallpaper/abstract/67239FBB-E15D-4F4F-8EE8-0F1C9F3C4E7C.jpeg +--- + # mysqldump备份数据库