1.进入本地项目地址html
$ cd Users/Shinelon/PycharmProjects/BBS/git
2.github建立项目连上本地仓库github
$ echo "# BBS" >> README.md #根据github提示 git add README.md
git add . #把本地文件都加上,额外的操做 git commit -m "first commit" git remote add origin https://github.com/dakewan/BBS.git git push -u origin master
3.把本地项目文件加上后提交输入github帐号密码spa
参考博客:https://www.cnblogs.com/alex3714/articles/5930846.htmlcode