git init
git add .
$ git config user.name "你的名字"
$ git config user.email "你的邮箱"
$ git remote add origin 地址
$ git pull origin master
$ git add .
$ git commit -m "你的第一次提交"
$ git push origin master
出现无法合并不想关的库
使用这个强制的方法
git pull origin master --allow-unrelated-histories
后面加上 --allow-unrelated-histories
, 把两段不相干的 分支进行强行合并