Skip to content

Instantly share code, notes, and snippets.

@asleepwalker
Created January 24, 2017 02:30
Show Gist options
  • Save asleepwalker/bf90aa49ba0504cf8f9f5ee31944f311 to your computer and use it in GitHub Desktop.
Save asleepwalker/bf90aa49ba0504cf8f9f5ee31944f311 to your computer and use it in GitHub Desktop.
Clean your repository if an unwanted file got there
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch database.cfg' --prune-empty --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment