我在Webstorm中启动了对Github Fork进行重新设置。在大约一分钟内,我完全满足了我的需求,我很高兴终于有了Git的解决方案。
现在,经过一个小时的谷歌搜索,合并,重新设置基础,创建和切换分支之后,我觉得我仍然离让git接受我的更改并推送到原点/主节点还很近。
我希望Git再添加两个命令:
git just-tell-me-what-the-problem-is
git just-push-what-is-in-my-local-workspace-to-origin-master
Run Code Online (Sandbox Code Playgroud)
同时,有人可以给我可靠的步骤吗?
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/celestially/mantra-sample-blog-app'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)
好吧,如果将git just-tell-me-what-the-problem-is其添加到GIT中,它将显示以“ hint:”开头的行。
除了告诉问题(“当前分支的尖端在其远程对应对象的后面”)之外,它还显示解决方案:“在再次推送之前合并远程更改(例如,'git pull')。” 并为您提供了一个包含更多信息的场所的参考:“有关详细信息,请参见'git push --help'中的'关于快进的注意事项'。”