Remove a commit from a remote git history that I am not locally

A team member accidentally transferred over 1GB of files to our master branch and pushed it back to its original position. I have since removed it from the control source and decided to master. However, all other employees who update their code (via git pull

) actually download the files as part of the story.

I want to completely remove this goal from history. I think it would be much easier to do if I had access to a team member computer, but I am not doing that now. So, is there a way to do this without having to pull the last one from the remote?


source to share

1 answer

I assume you have a copy of the repo, but you just don't have the latest big-commit version. You can push your copy to the repo with git push -f

to completely override that other repo post and continue from there.



All Articles