Skip to content

Instantly share code, notes, and snippets.

@haruta
Created October 11, 2012 09:18
Show Gist options
  • Save haruta/3871202 to your computer and use it in GitHub Desktop.
Save haruta/3871202 to your computer and use it in GitHub Desktop.
git-current
#!/bin/sh
# usage:
# git current で現在のブランチ名を表示する
git branch | grep '*' | sed 's/* //'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment