想把平时练习的代码放到一个仓库里,百度了都没找到解答,自己就用了一个笨方法,仅供参考。
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
在github同一个仓库立上传多个项目

2、上传另一个新的文件夹
把该文件夹复制到D:\ggg。
在github同一个仓库立上传多个项目
git操作:
$ git add .
$ git commit -m "first commit"
$ git push -u origin master
在github同一个仓库立上传多个项目

上传之后的github:
在github同一个仓库立上传多个项目

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2021-09-06
  • 2021-12-09
  • 2022-01-13
  • 2021-05-27
  • 2021-09-09
猜你喜欢
  • 2021-10-29
  • 2019-01-16
  • 2022-02-26
  • 2021-04-11
  • 2021-11-02
  • 2021-09-27
  • 2022-01-14
相关资源
相似解决方案