How do I remove a big file wrongly committed in git [duplicate]

You can do it using the git filter-branch command, like this :

git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD

You can find more documentation here http://dalibornasevic.com/posts/2-permanently-remove-files-and-folders-from-a-git-repository

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)