madfour / blog-docs

一个备忘录罢了
https://madfour.cn
MIT License
5 stars 0 forks source link

删除远程仓库中的文件或文件夹 #59

Open madfour opened 3 years ago

madfour commented 3 years ago

$ git --help 帮助命令
$ git pull origin master 将远程仓库里面的项目拉下来
$ dir 查看有哪些文件夹
$ git rm -r --cached target 删除target文件
$ git commit -m ‘删除了target’ 提交,添加操作说明
$ git push -u origin master 将本次更改更新到github项目上去。