本地初始化的项目 与 github 版本不一致, 导致无法提交
 
$ git pull origin master
来自 https://github.com/itaken/python-login-demo
 * branch            master     -> FETCH_HEAD
fatal: 拒绝合并无关的历史
解决方法
 
在pull 时候, 添加–allow-unrelated-histories参数 即可.
 
$ git pull origin master --allow-unrelated-histories                   
来自 https://github.com/itaken/python-login-demo
 * branch            master     -> FETCH_HEAD
Merge made by the 'recursive' strategy.
 LICENSE | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 LICENSE

 

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-03-09
  • 2021-09-27
  • 2021-10-19
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2021-11-13
  • 2021-06-14
  • 2021-06-05
  • 2022-01-14
  • 2021-07-11
相关资源
相似解决方案