GitHub提交项目到仓库fatal: No configured push destination.

原因:没指定提交到哪个远程仓库

解决方法:

在你git add .和commit之后

git add .
git commit -m "信息"

git push前输入以命令

git branch -M main
git remote add origin git@github.com:xxx(你GitHub的名称)/xxx.git(你仓库的名称)
git push -u origin main

参考:

关于gitee第一次提交出现fatal: No configured push destination. Either specify the URL from the command-line or_either specify the url from the command-line or co-CSDN博客

如何新建Github仓库并将本地文件上传到Github(远程连接)以及Git常用命令总结_github 新建仓库push-CSDN博客

相关推荐

  1. GitHub】将本地VueCLI项目关联GitHub远程仓库

    2023-12-28 14:54:04       30 阅读
  2. 项目提交空的git仓库流程

    2023-12-28 14:54:04       112 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-28 14:54:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-28 14:54:04       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-28 14:54:04       82 阅读
  4. Python语言-面向对象

    2023-12-28 14:54:04       91 阅读

热门阅读

  1. 文件&IO

    文件&IO

    2023-12-28 14:54:04      51 阅读
  2. Flutter 官方状态管理 Provider基本使用

    2023-12-28 14:54:04       58 阅读
  3. 我的创作纪念日:感恩、感谢、感激!

    2023-12-28 14:54:04       64 阅读
  4. centos 安装 vsCode

    2023-12-28 14:54:04       54 阅读
  5. 激活函数:神经网络的生命之花

    2023-12-28 14:54:04       50 阅读
  6. 力扣:135. 分发糖果(贪心)

    2023-12-28 14:54:04       58 阅读
  7. Microsoft Edge 浏览器可能遇到的问题,和解决方法

    2023-12-28 14:54:04       88 阅读
  8. ansible 加密

    2023-12-28 14:54:04       49 阅读
  9. CentOS 8 安装指定版本ansible

    2023-12-28 14:54:04       49 阅读
  10. 使用aspose.Words更新表格列宽

    2023-12-28 14:54:04       48 阅读