版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_35917800/article/details/89313593
把本地一个github-demo的项目推到github上,先去github上new一个新的仓库:
然后,创建仓库名字:
创建完毕会生成一个远程仓库的地址,待会会使用到
使用Git Bash进入到github-demo文件夹下:
git remote add origin [email protected]:zhangzhuang1995/github-demo.git,后面的这个地址即为远程仓库的地址。
操作完毕后,就能在github上看到提交的工程: