GIT上传本地项目到Github

1.进入本地项目地址

$ cd Users/Shinelon/PycharmProjects/BBS/

2.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账号密码

参考博客:https://www.cnblogs.com/alex3714/articles/5930846.html

猜你喜欢

转载自www.cnblogs.com/blue-day/p/9226839.html