git clone 设置临时的 proxy
阅读原文时间:2023年07月08日阅读:1

ss.sh

#!/bin/env bash

BASEDIR=$(dirname "$0")
cd $BASEDIR

disable_proxy()
{
    git config --global --unset https.proxy
}
trap disable_proxy INT 

git config --global https.proxy http://127.0.0.1:1080

ss-local -c ./config.json

config.json

{
    "server":"domain.name",
    "server_port": port,
    "local_address": "127.0.0.1",
    "local_port": 1080,
    "password": "password",
    "timeout": 600,
    "method": "chacha20-ietf-poly1305"
}