Skip to content

Instantly share code, notes, and snippets.

@IanByun
Last active November 12, 2018 12:41
Show Gist options
  • Save IanByun/5c8f9fc2a54cb59e2544a67c264fb33a to your computer and use it in GitHub Desktop.
Save IanByun/5c8f9fc2a54cb59e2544a67c264fb33a to your computer and use it in GitHub Desktop.
git filter-branch -f --index-filter "git rm -rf --cached --ignore-unmatch '경로\파일 이름.확장자'" -- --all
git rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --aggressive --prune=now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment