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