1. 不能保存密码
git config --global credential.helper osxkeychain
2.超时设置
git config --global http.lowSpeedLimit 0 git config --global http.lowSpeedTime 999999
3. 命令行显示中文
git config --global core.quotepath false
github换源
git config --global url."https://github.com.cnpmjs.org".insteadOf https://github.com // 替换 git config --global url."https://hub.fastgit.org".insteadOf https://github.com git config --global url."git@fastgit.org".insteadOf git@github.com // 查看git配置信息 git config --global --list // 取消设置 git config --global --unset url.https://github.com/.insteadof // 配置http INTERNAL_ERROR (err 2) git config --global http.postBuffer 524288000 git config --list
资源直接导入
mkdir -p /var/opt/gitlab/git-data/repo_20210821 cp -r repositories/* repo_20210821 chown -R git:git repo_20210821 gitlab-rake gitlab:import:repos['/var/opt/gitlab/git-data/repo_20210821/']
No Leanote account? Sign up now.