-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Git下载自动替换协议 | ||
|
||
|
||
## git协议用https下载 代理友好 | ||
```powershell | ||
git config --global url."https://github.com/".insteadOf [email protected]: | ||
git config --global url."https://".insteadOf git:// | ||
git config --global url."https://".insteadOf git+ssh:// | ||
``` | ||
取消 | ||
```powershell | ||
git config --global --unset url."https://github.com/".insteadOf | ||
git config --global --unset url."https://".insteadOf | ||
``` | ||
|
||
## https协议用git下载 可能更安全 | ||
|
||
```powershell | ||
git config --global url."[email protected]:".insteadOf https://github.com/ | ||
git config --global url."git://".insteadOf https:// | ||
``` | ||
取消 | ||
```powershell | ||
git config --global --unset url."[email protected]:".insteadOf | ||
git config --global --unset url."git://".insteadOf | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters