删除github上面的文件

在工程目录下执行下面操作:

1.
$ git rm -rf .idea

rm即是remove
删除文件夹后面要加上-rf,删除文件不用加-rf

2.
$ git add .


3.
$ git commit -m '删除.idea文件夹'


4.
$ git push

猜你喜欢

转载自wangsuting.iteye.com/blog/1983798