本地项目推到github上

把本地一个github-demo的项目推到github上,先去github上new一个新的仓库:
本地项目推到github上
然后,创建仓库名字:
本地项目推到github上
创建完毕会生成一个远程仓库的地址,待会会使用到
本地项目推到github上
使用Git Bash进入到github-demo文件夹下:
本地项目推到github上
git remote add origin [email protected]:zhangzhuang1995/github-demo.git,后面的这个地址即为远程仓库的地址。
操作完毕后,就能在github上看到提交的工程:
本地项目推到github上