Skip to content

Instantly share code, notes, and snippets.

@evincarofautumn
Created October 29, 2014 18:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evincarofautumn/ee6b5c4e62a3626a6f82 to your computer and use it in GitHub Desktop.
Save evincarofautumn/ee6b5c4e62a3626a6f82 to your computer and use it in GitHub Desktop.
Show git branch description
#!/bin/sh
if [ $# -ne 1 ]; then
echo 'Usage: git-branch-description <branch name>' >&2
exit 1
fi
EDITOR='cat' git branch --edit-description "$1" | grep -v '^#'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment