DEV Community


Discussion on: Remove accidentally pushed file from a git repository history in 4 simple steps

karataev profile image
Eugene Karataev

I agree with Joe, use git push -f with caution.

Warning: It is considered bad practice to rebase commits which you have already pushed to a remote repository. Doing so may invoke the wrath of the git gods.

moshe profile image
Moshe Zada Author

Agree, I will add a warning thank you @joe and Eugene for the feedback