一、删除文件夹及文件夹中的文件

第一步,用鼠标右键删除掉你的文件夹

第二步,git bash 打开命令窗口,按顺序输入如下命令

$ git rm -r --cached [文件夹名]        #删除缓存区的文件目录              

$ git commit -m "Remove the now ignored directory some-directory"  

$ git push  

 

二、删除单个文件

$ git rm test.txt

$ git commit -m "remove test.txt"

$ git push
Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐