1.建立远程仓库

git remote add origin git@github.com:yourname/repositoryname.git

2.将github的项目pull到本地

git pull origin master --allow-unrelated-histories

3.将本地项目push到github

git push -u origin master