在github同一个仓库立上传多个项目

想把平时练习的代码放到一个仓库里,百度了都没找到解答,自己就用了一个笨方法,仅供参考。
1、建立本地一个文件夹专门放不同练习代码
我是 D:\ggg。
右键 Git Bath Here进入git操作:
先上传一个小练习的文件夹

$ git init
$ git add .
$ git commit -m "first commit"
$ git remote add origin https://github.com/yourName/yourRepo.git
$ git push -u origin master

2、上传另一个新的文件夹
把该文件夹复制到D:\ggg。

git操作:
$ git add .
$ git commit -m "first commit"
$ git push -u origin master

上传之后的github:

猜你喜欢

转载自blog.csdn.net/asuna_yu/article/details/80217020
今日推荐