Skip to content

Instantly share code, notes, and snippets.

@cronin101
Created September 3, 2012 10:24
Show Gist options
  • Save cronin101/3608389 to your computer and use it in GitHub Desktop.
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
alias story="~/dev/storyid.rb"
#!/usr/bin/ruby
# Don't forget to $ chmod +x storyid.rb
puts '[#'<<`git branch`.split('* ')[1].split('-')[0]<<']'
@cronin101
Copy link
Author

$ git commit -m "$(story) description of changes"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment