📜  git remove from history - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:27.857000             🧑  作者: Mango

代码示例4
$ git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk
$ git commit --amend -CHEAD
# Amend the previous commit with your change
# Simply making a new commit won't work, as you need
# to remove the file from the unpushed history as well