Skip to content

Instantly share code, notes, and snippets.

@kaznum
Created January 4, 2012 19:13
Show Gist options
  • Select an option

  • Save kaznum/1561530 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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