【问题标题】:HOW TO FIX: error: failed to push some refs to | Create Remote GitHub Repository?如何修复:错误:未能将一些参考推送到 |创建远程 GitHub 存储库?
【发布时间】:2021-08-06 16:21:24
【问题描述】:

我无法将我的项目推送到 GitHub 存储库,它一直告诉我 >>未能推送一些参考 如何解决?

【问题讨论】:

  • 可以分享一下你用来推送的命令吗?
  • 我使用的命令是 Git Bash

标签: flutter github repository developer-tools


【解决方案1】:

只需在您的桌面上打开 Git Bash Here 并按照以下步骤操作....编写以下说明:

1 ===> cd .....................复制你的地址

2 ===> git 初始化

3 ===> 在你的 github 项目上运行类似这样的东西 ==> git remote add origin https://github.com/something/yourApp.git

4 ===> git 远程

5 ===> 在你的 github 项目上运行类似这样的东西 ==> git push -u origin main

6 ===> git add -A

7 ===> git commit -m '初始提交'

8 ===> 再次运行 ==> git push -u origin main ....但不是 main 用 .....master 替换它,所以它会是这样的

8 ===> git push -u origin master

然后使用你的用户名和密码登录 github 帐户,它会立即推送你的项目。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-25
    • 2014-07-29
    • 1970-01-01
    • 1970-01-01
    • 2020-12-30
    • 1970-01-01
    • 2012-04-28
    相关资源
    最近更新 更多