git rm --cached <file_name>

git commit “删除了<file_name>文件"

git rm --cached <file_name> will remove the file from the stage.

 

相关文章: