Git Bash Script

Remove the history from

rm -rf .git

Recreate the repos from the current content only

git init
git add .
git commit -m "Initial Commit"

Push to the github remote repos ensuring you overwrite history

git remote add origin https://github.com/ChangUk/changuk.github.io.git
git push -u --force origin master

References

  1. https://gist.github.com/stephenhardy/5470814
  2. https://help.github.com/articles/changing-a-remote-s-url/