Created
November 13, 2013 06:30
-
-
Save uiur/7444655 to your computer and use it in GitHub Desktop.
branch名から数字だけとる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-parse --abbrev-ref HEAD | sed -e "s/^[^0-9]*\([0-9]*\).*$/\1/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment