remove a file that has been pushed to gitlab on git code example Example: how to remove a pushed file from git git checkout HEAD^ -- /path/to/file