DEV Community

loading...

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

Collapse
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.

Collapse
moshe profile image
Moshe Zada Author

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