vim ~/.bashrc
底行模式下,按下shift+g到在文件末尾,输入:
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
然后保存
:wq
最后
source ~/.bashrc
在vim编辑器中,通过底部模式到达.bashrc文件末尾,添加环境变量REPO_URL设置为清华大学镜像源地址。保存并退出后,运行source ~/.bashrc使更改生效,从而优化Git仓库的访问速度。
vim ~/.bashrc
底行模式下,按下shift+g到在文件末尾,输入:
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
然后保存
:wq
最后
source ~/.bashrc
2026
9484
3634
1773

被折叠的 条评论
为什么被折叠?