Github Access
Add Token
Settings -> Developer settings -> Personal access token
$ git clone https://github.com/username/repo.git
Username: your_username
Password: your_token
Deleting your credentials via the command line
$ git credential-osxkeychain erase
host=github.com
protocol=https
> [Press Return]
HTTP/1.1
git config --global http.version HTTP/1.1
Proxy
git config --global http.proxy socks5h://192.168.2.50:1086
git config --global https.proxy socks5h://192.168.2.50:1086
git clone https://ghproxy.com/https://github.com/stilleshan/ServerStatus
git clone https://user:your_token@ghproxy.com/https://github.com/your_name/your_private_repo
wget https://ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip
wget https://ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile
curl -O https://ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip
curl -O https://ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile
File name fix 1 or 2
1. git config --global core.quotepath false
2. force utf8
git config --global i18n.logOutputEncoding utf-8
git config --global i18n.commitEncoding utf-8
git config --global i18n.filesEncoding utf-8
Update All
!/bin/bash
git config --global http.proxy socks5h://127.0.0.1:1086 git config --global https.proxy socks5h://127.0.0.1:1086
REPOS=("11111" "2222222" "33333333" "4444444" "555555" "666666" "777777777")
for repo in "${REPOS[@]}"; do repo_dir="$repo" if [ -d "$repo_dir/.git" ]; then echo "Updating repository in $repo_dir" cd "$repo_dir" || continue git pull cd ".." || exit else echo "$repo_dir is not a git repository, skipping..." fi done ```