gpt4 book ai didi

git - 未找到存储库,无法推送到私有(private)存储库

转载 作者:行者123 更新时间:2023-12-05 06:33:28 27 4
gpt4 key购买 nike

当我尝试将其推送到存储库时出现此错误。

git push origin master

remote: Repository not found.

fatal: repository 'https://github.com/username/projectname.git/' not found

该网址有效。

最佳答案

检查远程仓库:

git remote -v

如果没有存储库则添加它:

git remote add origin https://github.com/username/repositoryName

pull 存储库:

git pull

git 添加并提交:

git add .
git commit -m "your message here"

推送到仓库:

git push -u origin master

关于git - 未找到存储库,无法推送到私有(private)存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50717001/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com