把特定文件从暂存区删除

    git

把特定文件从暂存区删除。

1
2
3
git rm --cached <filename> 
git commit -m "sth commit"
git push origin <branch>

重新提交后,配合修改.gitignore,可以在本地保存文件并将其从服务器端删除。

09 Oct 2015

page PV:  ・  site PV:  ・  site UV: