$ rm -rf .git
$ git config --global core.autocrlf false
$git init
$git add .
------------------------------------------------------------------
$ 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