将本地代码上传到GitHub
1 git init 2 git add . 3 git commit -m "第一次提交" 4 git remote add origin https://github.com/qixlin/spring.git 5 git pull origin master --allow-unrelated-histories 6 git push -u origin master
大功告成
更多精彩
1 git init 2 git add . 3 git commit -m "第一次提交" 4 git remote add origin https://github.com/qixlin/spring.git 5 git pull origin master --allow-unrelated-histories 6 git push -u origin master
大功告成