Skip to content

Instantly share code, notes, and snippets.

@bradurani
Last active December 24, 2015 00:29
Show Gist options
  • Save bradurani/6717639 to your computer and use it in GitHub Desktop.
Save bradurani/6717639 to your computer and use it in GitHub Desktop.
Archive local branch in Git
git tag archive/<branchname> <branchname>
git branch -d <branchname>
#checkout archived branch
git checkout -b <branchname> archive/<branchname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment