Last active
January 4, 2016 06:49
-
-
Save jsm/8584681 to your computer and use it in GitHub Desktop.
Fresh repo
This file contains hidden or 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
repo=${PWD##*/} | |
cd .. | |
mkdir temprepo | |
cp -a $repo/.git temprepo/ | |
rm -rf $repo | |
mv temprepo $repo | |
cd $repo | |
git reset --hard HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment