Last active
December 21, 2015 04:28
-
-
Save anaynayak/6249602 to your computer and use it in GitHub Desktop.
Handy script to clean up bad code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rm -rf * | |
mv .git/config /tmp/git_config | |
rm -rf .git | |
git init | |
mv -f /tmp/git_config .git/config | |
touch .gitignore | |
git add . | |
git commit -m "Code cleanup" | |
git push -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment