问题记录
# 1.使用git迁移git项目并保留提交记录
# 1. 从原地址克隆一份裸版本库
git clone --bare http://172.16.39.31:7000/gitlab/settlement/settlement-back.git
# 2. 进入到settlement-back.git目录, 并且镜像推送代码到新仓库
cd settlement-back.git
git push --mirror http://172.16.39.31:7000/gitlab/ops/operation-ops.git
1
2
3
4
5
2
3
4
5
# 2. You are not allowed to force push code to a protected branch on this project
到 settings -> Repository -> protected branches 中 将具体某个分支 开启 Allowed to force push.
1
# 3. git 文件/目录重命名
git mv -f settlement-common ops-common
1
# warning: ----------------- SECURITY WARNING ----------------
# warning: | TLS certificate verification has been disabled! |
# warning: ---------------------------------------------------
# warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
访问 https://aka.ms/gcm/tlsverify
安全警告 ⚠️
禁用 TLS (SSL) 证书验证会消除对 中间人 (MITM) 攻击的保护。
仅当您确定需要、了解所有风险并且无法信任特定的自签名证书(如上所述)时,才禁用证书验证。
环境变量GIT_SSL_NO_VERIFY和 Git 配置选项http.sslVerify可用于控制 TLS (SSL) 证书验证。
要禁用特定遥控器的验证(例如https://example.com):
git config --global http.https://example.com.sslVerify false
要禁用所有遥控器的当前用户验证(不推荐):
# Environment variable (Windows)
SET GIT_SSL_NO_VERIFY=1
# Environment variable (macOS/Linux)
export GIT_SSL_NO_VERIFY=1
# Git configuration (Windows/macOS/Linux)
git config --global http.sslVerify false
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16