Skip to content

Instantly share code, notes, and snippets.

@kaznum
Created January 4, 2012 19:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaznum/1561530 to your computer and use it in GitHub Desktop.
Save kaznum/1561530 to your computer and use it in GitHub Desktop.
force remove file from git repository.
#!/bin/bash
# force remove file from git repository.
git filter-branch --index-filter 'git update-index --remove filepath_to_remove' HEAD
git push --force --verbose --dry-run
git push --force
@ghdss26
Copy link

ghdss26 commented Dec 26, 2022

Reconfiguration of bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment