0 Star 0 Fork 0

RunAtWorld / runatworld.github.io

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
git-skills.md 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
RunAtWorld 提交于 2020-03-17 00:27 . GitLab 网页加载慢问题

git 技巧

git push 本地不用输入用户名密码

  1. 进入~(用户)目录: cd ~

  2. 建立文件 .git-credentials: touch  .git-credentials

  3. 编辑文件 .git-credentials: vi  .git-credentials

  4. 添加 https://用户名:密码@gitlab.com

  5. 执行命令:git config --global credential.helper store

  6. 查看文件: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

github 网页加载慢问题

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 网页加载慢问题

# GitLab Start
35.231.145.151 gitlab.com
# GitLab End

常见的 基于 git 的网站

网站 国家
github 美国
gitlab 美国
gitee 中国大陆
1
https://gitee.com/RunAtWorld/runatworld.github.io.git
git@gitee.com:RunAtWorld/runatworld.github.io.git
RunAtWorld
runatworld.github.io
runatworld.github.io
master

搜索帮助