Created
August 15, 2012 13:52
-
-
Save jdu/3360334 to your computer and use it in GitHub Desktop.
Keep your Repo Clean
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
# Tag the archive | |
git tag archive/<branchname> <branchname> | |
# Delete the branch | |
git branch -d <branchname> | |
# To restore the branch, checkout from the tag | |
git checkout -b <branchname> archive/<branchname> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment