I am at my wits end aftering trying to find a solution to this however since this is more of a CS50 specific issue I haven't been able to find an answer.
I was submitting Project 3 - Mail on Github and didn't pay attention to the directory structure. The required structure is 2 folders mail and project3 and then the file manage.py. However I mistakenly put these in a parent folder called mail. Due to this understandably my submission was rejected and I was asked to reorganize the folders. However since the repo is not owned by me I cannot delete make another branch as default and you cannot delete a default branch on git so I cannot delete it it to start fresh. My research online found that if i make the changed in my local branch on my pc and then push the changes it should update the remote branch but unfortunately it doesn't allow me to do that because it says the remote branch has changes which are not on my local branch that is because the local branch has the new directory structure which I`m trying to push so naturally it will not be the same! Sigh. Error given below. I hope I have been clear with the issue. If anyone can suggest anythign at all I will be most grateful!
hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.