【问题标题】:Impossible to push on existing repository无法推送现有存储库
【发布时间】:2021-12-31 16:09:05
【问题描述】:

我正在尝试将我的更新项目推送到我现有的 git 存储库

我正在输入的所有命令

@LAPTOP-RI3QM8UR MINGW64 ~

$ cd 桌面

$ cd Flutter-first-app

$ git 状态

$ git add .

$ git commit -am "最终版本"

$ git 推送

...它返回给我一个像这样的致命错误:

然后我尝试“git remote ...”但仍然

【问题讨论】:

    标签: flutter shell github error-handling push


    【解决方案1】:

    您需要添加要推送本地分支的 repo 的 url,方法是:

    git remote add yourGitHubRepoUrl
    

    然后: git推送

    【讨论】:

    • `我做到了,它返回给我Everything up-to-date 但是当我查看我的回购仍然没有更新时
    猜你喜欢
    • 2021-09-11
    • 2011-03-14
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多