Skip to content

Instantly share code, notes, and snippets.

@marcuslilja
Created April 8, 2014 21:16
Show Gist options
  • Save marcuslilja/10193763 to your computer and use it in GitHub Desktop.
Save marcuslilja/10193763 to your computer and use it in GitHub Desktop.
Save a repository as deprecated.
repo_destiny -> marcuslilja/deprecated
repo_source -> marcuslilja/my-repository
git clone git@github.com:${repo_source}.git
git clean -fd
git reset --hard
git checkout master
git pull -f origin master
git checkout -B ${repo_source}
git push -f git@github.com:${repo_destiny}.git ${repo_source}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment