Deepin 使用教程:git 代理

原文在這裏,拷貝過來記錄下:
  https://baijiahao.baidu.com/s?id=1603409484949165821&wfr=spider&for=pc

  在獲取github上面的代碼的時候,發現有時候很慢,這時候就需要使用代理。
在這裏插入圖片描述
設置代理

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

如果拉取gitee,記得取消代理

git config --global --unset http.proxy
git config --global --unset https.proxy

Deepin 系列教程
Deepin 使用教程:前言

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章