删除git仓库已有文件

有时候要忽略的文件不小心传上去了,但是本地是需要的,就可以用以下方法删除

<!-- 强制删除缓存 -->
git rm --cached --force "文件路径"

<!-- 提交到本地库 -->
git commit -m "删除缓存"

<!-- 推到远端删除缓存 -->
git push

发表评论

评论列表,共 1 条评论

  • Latooka

    Hi! Please note an amazing offering for you. http://bit.ly/2JYd2dj

About This Page

Made with bootstrap and jquery by TaoYuan.

Contact Me

Click! If you are interested