Skip to content

Instantly share code, notes, and snippets.

@Anthchirp
Created August 20, 2015 08:02
Show Gist options
  • Save Anthchirp/3fe355ded66bbbaf83ee to your computer and use it in GitHub Desktop.
Save Anthchirp/3fe355ded66bbbaf83ee to your computer and use it in GitHub Desktop.
git remote add -f history https://github.com/(..)/(..)history.git
git replace $(git rev-list --reverse HEAD | sed -n -e 2p) history/master
git remote rm history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment