I have some old branches in my git repository that are no longer under active development. I would like to archive the branches so that they don\'t show up by default when r
Extending Steve's answer to reflect the changes on the remote, I did
git tag archive/ git branch -D git branch -d -r origin/ git push --tags git push origin :
To restore from the remote, see this question.