Created
September 3, 2012 10:24
-
-
Save cronin101/3608389 to your computer and use it in GitHub Desktop.
Script that takes id from current branch (for prepending commits) and addition to ~/.profile for aliasing
This file contains 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
alias story="~/dev/storyid.rb" |
This file contains 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
#!/usr/bin/ruby | |
# Don't forget to $ chmod +x storyid.rb | |
puts '[#'<<`git branch`.split('* ')[1].split('-')[0]<<']' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ git commit -m "$(story) description of changes"