关联吸纳的remote首次push报错rejected

F:\abb-iot\DmsAPI\DmsAPI (master -> origin)
λ  git push --set-upstream github master
To github.com:G****c/DmsAPI.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to ‘[email protected]:Glorycsc/DmsAPI.git‘
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: ‘git pull ...‘) before pushing again.
hint: See the ‘Note about fast-forwards‘ in ‘git push --help‘ for details.

  

入如果pull有这个报错:
fatal: refusing to merge unrelated histories

  此项错误是由于本地仓库和远程有不同的开始点,也就是两个仓库没有共同的 commit 出现的无法提交。这里我们需要用到 --allow-unrelated-histories。也就是我们的 pull 命令改为下面这样的:

git pull origin master --allow-unrelated-histories

如果设置了默认分支,可以这样写:

git pull --allow-unrelated-histories

原文地址:https://www.cnblogs.com/gloryhope/p/12067853.html

时间: 2024-08-04 04:05:56

关联吸纳的remote首次push报错rejected的相关文章

<问题解决02>Linux虚拟机使用git push报错--解决方案如下:

问题描述: 使用git push 报错: error: The requested URL returned error: 403 Forbidden while accessing https://github.com/Newlyfly/Hello_World.git/info/refs fatal: HTTP request failed 解决方案: 解决方案来源博客地址:http://blog.csdn.net/happyteafriends/article/details/1155404

git push报错error: failed to push some refs to '[email protected]:

$ git push -u origin master To [email protected]:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:xxx/xxx.git' hint: Updates were rejected because the remote contains work that you do hint:

git push 报错:failed to push some refs to '[email protected]:devops/thor.git'

error: failed to push some refs to '[email protected]:devops/thor.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing

TortoiseGit Push报错 “Couldn't load this key(unable to open file)” 解决

TortoiseGit 在push时总报"Couldn't load this key(unable to open file)"的错误,导致无法提交 解决方案: 打开工程git目录下的config文件,发现私钥文件的路径的错误的 重新指定一下即可. TortoiseGit Push报错 "Couldn't load this key(unable to open file)" 解决 原文地址:https://www.cnblogs.com/beeasy/p/835

python+selenium Remote 启动firefox报错总结

#coding=utf-8 from selenium.webdriver import Remote dr = Remote(command_executor='http://127.0.0.1:4444/wd/hub', desired_capabilities={'platform':'ANY', 'browserName':'firefox', 'version':'', 'javascriptEnabled':True } ) dr.get("https://www.baidu.com

Activemq首次运行报错 “找不到或无法加载主类”

首次运行Program Files\apache-activemq-5.10.0\bin目录下的activemq.bat文件,报错信息如下: 找不到或无法加载主类 Files\apache-activemq-5.10.0\bin\..\conf\login.config 百度后发现是路径中含有空格(文件夹“Program Files”)的原因,空格截断了字符串参数的读取.按照该文章给出的修改方法, 解决方案: 找到第80行的 if "%ACTIVEMQ_OPTS%" == "

git push 报错

git push报错误: Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal 从stackoverflow 找到的答案,解决问题 http://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly http://stackoverf

python 首次安装 报错

最近python很火,想在空余时间学习一波,但是安装完Python后运行发现居然报错了,错误代码是0xc000007b,于是通过往上查找发现是因为首次安装Python缺乏VC++库的原因 错误提示如下: 其实这是一个挺常见的系统报错,缺乏VC++库. 我安装的是python3.5.2,这个版本需要的vc版本是2015的了,下载:Microsoft Visual C++ 2015 安装完后发现就正常了: 原文地址:https://www.cnblogs.com/fuzitu/p/8480118.h

mac系统idea开发工具git -push 报错:no matching host key type found. Their offer: ssh-dss

原因: 根本原因之所以报错是因为OpenSSH7.0以后的版本不再支持ssh-dss(DSA)算法,官方的说法是这个算法太弱了.MACOS升到10.12附带的openssh版本是7.4,如下:?~sshd-Vsshd:illegaloption--VOpenSSH_7 解决方案: 命令行里添加选项 ssh -oHostKeyAlgorithms=+ssh-dss [email protected] 添加 HostKeyAlgorithms +ssh-dss到配置 ~/.ssh/config 原文