【问题标题】:Atom git-plus difficultiesAtom git-plus 困难
【发布时间】:2016-08-23 18:54:53
【问题描述】:

我正在尝试设置atoms git-plus 包,并且已经完成了我认为合适的设置步骤,并且无法将文件推送到我的github 帐户。使用 git config,我已经配置了 user.email 和 user.name,并确保它们反映了我在 Github 中的帐户和电子邮件地址

我收到一条错误消息:

To https://github.com/etc.
![rejected] HEAD -> master (fetch first)
error: failed to push some refs to https://github.com etc.
Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want o first integrate the remote changes e.g. git pull before pushing again.

新的存储库是刚刚创建的测试存储库。我尝试了 git pull,然后尝试通过 git-plus 推送它。我试图删除本地副本并通过克隆再次创建它。我可以使用终端推送文件。 我对版本控制知之甚少,不知道下一步该做什么。有什么想法吗?

【问题讨论】:

    标签: git github atom-editor


    【解决方案1】:

    对于那些像我一样困惑的人:正在发生的事情。

    我通过将我的 git pull 消息指定给名称和分支来解决此问题。这合并了导致问题的任何文件,然后我从 git-plus 推送工作正常。

    据我了解(当我把它搞砸时,请那些知道他们在这里谈论什么的人纠正我)

    git pull 应该是这样的

    git pull origin (which is the alias of your remote repository) master (which is the branch you're pulling from)
    

    我正在输入 git pull 并且不明白您需要指定您尝试合并的位置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-02
      • 2013-03-14
      相关资源
      最近更新 更多