热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

无法克隆或将现有项目推送到gitlab

如何解决《无法克隆或将现有项目推送到gitlab》经验,为你挑选了1个好方法。

我创建了一个私人存储库,并且笔记本电脑上已有现有项目。我需要将现有项目添加到我的仓库中。但是当我使用终端时,出现以下错误:

remote: The project you were looking for could not be found.
fatal: repository 'https://gitlab.com/sathishchinniah/Taxi-App-User.git/' not found

我遵循的步骤:

**Existing folder
cd existing_folder
git init
git remote add origin https://gitlab.com/sathishchinniah/Taxi-App-User.git
git add .
git commit -m "Initial commit"
git push -u origin master**

这会有什么问题,请帮帮我。



1> coder..:

下面的步骤解决了我的问题。在下面的命令中,username用您的GitLab用户名和projectGitLab项目名称替换。

git remote set-url origin https://username@gitlab.com/username/project.git

在尝试使用bellow命令推送到主服务器后,它将弹出一个窗口,以向存储库添加凭据。

git push -u origin master


推荐阅读
author-avatar
武储中专_444
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有