A git plugin to make archiving branches to tags easier. The plugin takes a branch (or uses the current branch if none is specified on the command line) and:
- validates it is not the master or git is in detached head state
- checks out the master branch
- creates a tag archive/{branch}
- pushes this tag to the origin
- deletes the branch
- deletes the branch from the origin
Via git clone.
The installer installs git-semver into the first of the following directories that exist and are in the path:
- /usr/local/bin
- /usr/bin
- /bin
In Linux, OSX and Windows Cygwin the installer will create a symlink. In Windows MinGW creates a stub instead.
(git clone [email protected]:markchalloner/git-branch-archive.git && \
cd git-branch-archive && git checkout $(
git tag | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+$' | \
sort -t. -k 1,1n -k 2,2n -k 3,3n | tail -n 1
) && sudo ./install.sh)
git branch-archive [branch-name]
Via uninstaller in clone directory. Navigate to your original clone directory and run:
sudo git-branch-archive/uninstall.sh
git-branch-archive is installed by placing a symlink/stub in one of the bin directories in the path.
- ${HOME}/bin
- /usr/local/bin
- /usr/bin
- /bin
It can be deleted easily:
sudo rm $(which git-branch-archive)
Please see CHANGELOG.md for more information what has changed recently.
Please see CONTRIBUTING.md for details.