赞
踩
一、gedit指令进入gitconfig文件
gedit ~/.gitconfig
二、添加配置项
[url "https://hub.nuaa.cf/"] insteadOf = https://github.com/
三、保存并退退出
其他参考链接: https://blog.csdn.net/m0_72435337/article/details/131871877?ops_request_misc=&request_id=&biz_id=102&utm_term=%E8%BF%9E%E6%8E%A5github%E7%BD%91%E7%AB%99%E5%87%BA%E7%8E%B0443%E6%8B%92%E7%BB%9D%E8%BF%9E%E6%8E%A5%E9%94%99%E8%AF%AF&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-1-131871877.142v99pc_search_result_base7&spm=1018.2226.3001.4187