Skip to content

Instantly share code, notes, and snippets.

@mauricerkelly
mauricerkelly / git-branch-alias
Created February 27, 2015 16:05
branch-alias subcommand for git
#!/bin/bash
# git branch-alias
# Version 1.07
# Author: Phil S.
# Creates branch aliases, so that you can refer to a long branch name
# by a convenient short alias. This is just a "do what I mean" wrapper
# around git symbolic-ref, but without the (considerable) risk of
# trashing a branch if you get your arguments wrong