기타

[Git] 전체 히스토리에서 특정 파일&특정 디렉토리 전부 삭제

YiDev 2019. 2. 26. 01:18

git filter-branch -f --index-filter "git rm --cached --ignore-unmatch @@@" --prune-empty -- --all

git filter-branch -f --index-filter "git rm --cached --ignore-unmatch @@@" --prune-empty --tag-name-filter cat -- --all


인터넷에 있는 명령어들을 다 찾아봐서 써봤으나

로컬에 있는 파일도 삭제됨.