我一直在尝试GitHub的Atom编辑器,但我正在努力让GitHub集成工作。我从我的帐户克隆了一个存储库,无法将更改推送回GitHub。
我只是添加了一个名为"otherfile.html“的测试文件,提交了这些更改,并尝试推送它。当我输入我的用户名和个人访问令牌(我有双因素身份验证设置)时,它会出现两次GitHub登录。然后它会给出这个错误消息:
The tip of your current branch is behind its remote counterpart. Try pulling before pushing again. Or, to force push, hold cmd or ctrl while clicking.
不确定它是否相关,但GitHub选项卡显示:
No Pull request could be found fo the branch master on the repository gabrielewig/gabrielewig.github.io
You can manually pin a GitHub pull request to the current branch by entering its URL:
任何帮助都将不胜感激!可以在这里找到确切的存储库:https://github.com/gabrielewig/gabrielewig.github.io
发布于 2018-04-10 12:59:25
首先,切换到命令行,看看git status
提供了什么。
如果仍然提到您的主分支落后于其远程分支,则执行git pull
。
其次,检查您的git config credential.helper
值。
例如,在Windows上,GCM helper需要你的用户名/密码(而不是PTA)才能创建PTA。
最后,一定要检查"Improved pull request experience in GitHub for Atom“(9月2018)
我们添加了一个拉取请求列表视图。现在,您可以在GitHub选项卡Ctrl+8中看到最新的拉取请求,其中包含以下信息:
除了查看有关现有pull请求的更多信息之外,您还可以直接从Atom打开一个新的pull请求。
https://stackoverflow.com/questions/49740939
复制相似问题