dotfiles/bin/archive_git.sh

8 lines
125 B
Bash
Raw Normal View History

#!/bin/bash
git checkout $1
git tag archive/$1 $1
git push origin --tags
git checkout -
git branch -D $1
git push origin :$1