代码拉取完成,页面将自动刷新
进入~(用户)目录: cd ~
建立文件 .git-credentials: touch .git-credentials
编辑文件 .git-credentials: vi .git-credentials
执行命令:git config --global credential.helper store
查看文件:more .gitconfig
可以看到如下信息,设置成功。
[push]
default = simple
[user]
name = test
email = test@gitlab.com
4,5步骤也可以换成,在 .git-credentials
中加上如下内容
[user]
email = test@gitlab.com
name = test
[credential]
helper = store
windows 进入 C:\Windows\System32\drivers\etc
目录, 在 hosts
最后加入以下解析内容。
# GitHub Start
# 13.250.177.223 github.com
#解决git clone 速度慢的问题
192.30.253.112 github.com
151.101.185.194 github.global.ssl.fastly.net
#解决浏览器下载master-zip包的问题
192.30.253.120 codeload.github.com
192.30.253.119 gist.github.com
151.101.184.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.184.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.184.133 camo.githubusercontent.com
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.133 avatars4.githubusercontent.com
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.com
151.101.184.133 avatars7.githubusercontent.com
151.101.184.133 avatars8.githubusercontent.com
# GitHub End
# GitLab Start
35.231.145.151 gitlab.com
# GitLab End
网站 | 国家 |
---|---|
github | 美国 |
gitlab | 美国 |
gitee | 中国大陆 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。