Skip to content

Instantly share code, notes, and snippets.

@Mr-Kumar-Abhishek
Last active May 22, 2018 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mr-Kumar-Abhishek/337e81e79cbda227496ef534ec8cbe94 to your computer and use it in GitHub Desktop.
Save Mr-Kumar-Abhishek/337e81e79cbda227496ef534ec8cbe94 to your computer and use it in GitHub Desktop.
Remove a blob from git
git filter-branch --index-filter \
'git rm -r --cached --ignore-unmatch <file/dir>' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment