报错内容:执行 git push -u origin dev/master
后输入username和password后报错,具体报错内容:Support for password authentication was removed on August 13, 2021
。
报错内容:从远程仓库拉取代码与本地同步的时候,执行 git pull xxx
后,出现 fatal: refusing to merge unrelated histories
[拒绝合并两个不相关的历史] 错误。从而不仅导致pull操作失败,后续的push操作也失败。
git pull origin master --allow-unrelated-histories
进行强制pull并合并,之后再执行 git push xxx
操作从本地推到远程即可。remote的仓库地址错误的的话,建议把SSH对应的.git地址改成HTTP的。
报错内容:git push -u origin master
推送到远程仓库时报错,报错内容:
! [rejected] master -> master (fetch first) error: failed to push some refs to 'xxxxxxx.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. ……
git pull origin master
,2 git push -u origin master
,