728x90
git filter-branch -f --index-filter "git rm --cached --ignore-unmatch 삭제하고자하는 file명" --prune-empty -- --all
git push origin --force --all
다른 블로그에는 " "으로 되어있지 않고
' ' 으로 되어있어서 이거 해결하느라 애먹었다.
https://stackoverflow.com/questions/32715034/removing-files-from-git-history-bad-revision-error
Removing files from git history - bad revision error
I am following the instructions on Github (https://help.github.com/articles/remove-sensitive-data/) to tidy up a messy repository. I have successfully cleared out all the .csv files using git fil...
stackoverflow.com
스택오버플로우는 신이야... 윈도우 환경에서의 터미널에서는 작은 따옴표가 아닌 큰따옴표를 사용해야함을 잊지말자!!!
728x90