I accidently commited a large file and now i'm stuck. I first tried this method: Fixing the "this is larger than GitHub's recommended maximum file size of 50.00 MB" error and received this message: "Cannot rewrite branches: You have unstaged changes." Since there was no indication if this was an error or informational message, i tried pushing again. Failed with the same error. and yes there are several similioar questions, but the solutions they present and i've tried do not work.
remote: warning: File Cyber Forensics/Work/Chapter 01/Ch01.zip is 96.05 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
So then I went here: Stackoverflow but the first try failed in the same way
git filter-branch -f --tree-filter 'rm -f /path/to/file' HEAD --all
ditto with the second attempt
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch path_to_the_file/your_big_file'
Now im concerned if i keep messing around I could really mess things up. Right now the only option I see is to clone the repository in a different folder and copy over everything except the huge files. But that is not the approach i wish to take, i would prefer to remove the large files from the commit.