使用git更新Github仓库文件

1、由本地仓库文件夹进入git
本地仓库文件夹右键—>Git Bash Here
我的文件夹如下:文件夹

2、向仓库子文件夹中传文件
① 进入目标文件夹:$ cd css
② 添加要上传文件名:$ git add style_3.css

③ 添加注释:$ git commit -m "with style_3.css"
④ 传入Github:$ git push -u origin master

Github端上传文件之前:
Github端上传文件之后:

猜你喜欢

转载自blog.csdn.net/asuna_yu/article/details/80174011