$ rm -rf .git 

$ git config --global core.autocrlf  false     

$git init 

$git add .

------------------------------------------------------------------

Git错误

  $ git remote add origin git@githun.com:youName/ gitdemo.git   

--------------------------------------------------------------------

 

fatal: refusing to merge unrelated histories
或者
 failed to push some refs to 'git@gitee.com:SeaLee/VueDemo'

说明:本地的仓库和服务器上的仓库有文件没有同步,应该先拉去服务器上的文件下来进行合并,然后整理之后提交

解决办法:

git pull origin master --allow-unrelated-histories

 

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2021-06-05
  • 2021-04-29
  • 2021-06-28
  • 2021-10-29
  • 2021-09-30
  • 2021-05-17
猜你喜欢
  • 2021-08-31
  • 2021-12-14
  • 2021-12-09
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案