How to completely reset a remote repository

Delete the .git directory locally

Recreate the git repostory

git init
touch .gitignore
git add .gitignore
git commit -m 'Initial commit'

Push to remote server, overwriting

git remote add origin <url>
git push --force origin master
  1. codeindsgn posted this