Skip to content

Instantly share code, notes, and snippets.

@jsm
Last active January 4, 2016 06:49
Show Gist options
  • Save jsm/8584681 to your computer and use it in GitHub Desktop.
Save jsm/8584681 to your computer and use it in GitHub Desktop.
Fresh repo
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