Answers for "git rebase to remove commit history"

0

git remove from history

$ 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
Posted by: Guest on July-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language