gitlab 转移项目

git clone 旧项目url

git remote rm origin

git remote add origin 新的url

git push origin master:master --force

报错

error: src refspec master does not match any

error: failed to push some refs to xxx

查看当前分支 是否为master,如果为main,创建master分支

git checkout -b master

再提交

git push origin master:master --force

如果过程中报

fatal: 'origin' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

请再次

git remote add origin 新的url

相关推荐
xixingzhe23 天前
Java 使用 GitLab4J 实现 WebHook
gitlab
童槿顏丶4 天前
GitLab部署到Linux
linux·运维·gitlab
InfinitePlus5 天前
Gitlab docker版本安装
docker·容器·gitlab
进击切图仔5 天前
GitLab 新用户创建与项目授权操作指南
gitlab
技术小结-李爽5 天前
【工具】git与gitee和gitlab和github等等有什么区别?
git·gitee·gitlab
xiaoxiangsiyan6 天前
GitLab CI/CD 自托管(EE 企业版)+ Kubernetes Runner 集群 + ArgoCD(GitOps 部署)
运维·网络·ci/cd·容器·kubernetes·gitlab·argocd
csdn2015_14 天前
vscode从gitlab拉项目到本地
vscode·gitlab
AOwhisky17 天前
AI审AI:GitLab上线AI代码审查,开发者可以松一口气了吗?
人工智能·gitlab
杨了个杨898218 天前
GitLab的简介及安装
gitlab
AOwhisky19 天前
云原生 DevOps 工具链从入门到实战(第一期)——DevOps概述与GitLab部署——从理念到工具落地
运维·ci/cd·云原生·gitlab·开发·devops