git delete redundant files

版权声明:本文为博主夏日辉的原创文章,未经博主允许不得转载。 https://blog.csdn.net/shanpenghui/article/details/90782718

本来想在clion里面删除多余的文件操作的,但是无意中找到命令行删除的指令并且成功删除,就没有再继续了解,有在clion里面成功删除过git文件的大神请指导一下。

想在git分支里面删除文件,直接用指令:

git rm --cached -r <your file or folder>

参考https://stackoverflow.com/questions/35122376/how-can-i-remove-a-file-from-git-within-intellij-vcs/48191707

猜你喜欢

转载自blog.csdn.net/shanpenghui/article/details/90782718