git删除远程仓库的文件或目录,但不删工做区

删除aa目录下的1.txt文件:git rm -r --cached aa/1.txt 删除aa目录:git rm -r --cached aa -r:Allow recursive removal when a leading directory name is given. –cached:Use this option to unstage and remove paths only fro
相关文章
相关标签/搜索