This wiki is not intended for students. If you are a student, please see:
How to clean the commit history
git checkout --orphan tmp_branch
git add -A
git commit -am "Initial commit"
git branch -D master
git branch -m master
git push -f origin master
For this to work you must unprotect the master under settings.