remove a folder file from git history filesystem eg. of command git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch Test\ Run/' -- --all "Test Run" was the folder while was removed from the tree history Link of video for reference https://www.youtube.com/watch?v=JKE7Zz1VGpU