设置身份
git config --global user.name "liang23"
git config --global user.email "93505466@qq.com"
更新仓库
git init
git add .
git commit -m "2021.10.02"
git branch -M main
git remote add origin git@github.com:liang23cn/Screenshot-collection
git push origin main
远程克隆
git clone git@github.com:liang23cn/Screenshot-collection
查看历史
git log
删除关联
git remote rm origin
配置代理
#添加代理
git config --global http.proxy http://192.168.6.5:10809
git config --global https.proxy https://192.168.6.5:10809
#取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy