This commit is contained in:
YUN-PC5\user 2024-01-02 13:25:22 +08:00
parent b713644431
commit 2255c22f0c
2 changed files with 46 additions and 0 deletions

View File

@ -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
## Git 全局设置: ## Git 全局设置:
@ -73,3 +82,33 @@ git config --global credential.helper wincred
## 储藏 (Stash) ## 储藏 (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'
```

View File

@ -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备份数据库 # mysqldump备份数据库