Skip to content

Instantly share code, notes, and snippets.

View janester's full-sized avatar

Jane Sternbach janester

  • New York, NY
View GitHub Profile
@BrainScraps
BrainScraps / quickly.rb
Last active December 18, 2015 00:49
This is a script that I made for quickly creating a new directory, GitHub repository, local respository, and linking the two up - all with one command! Dependencies: git github account & credentials the 'octokit' gem (gem install octokit) Usage: First, edit the script to include your GitHub username and password. ruby quickly.rb newprojectname
#This is a script that I made for quickly creating a new directory, GitHub repository,
#local respository, and linking the two up - all with one command!
#Dependencies:
#git
#github account & credentials
#the 'octokit' gem (gem install octokit)
#Usage:
#First, edit the script to include your GitHub username and password.
@EmmanuelOga
EmmanuelOga / commit-msg
Created June 13, 2012 22:01
commit-msg hook to add a prefix to commit messages
#!/usr/bin/env ruby
#
# Git commit-msg hook. If your branch name is in the form "US1234-postfix", or
# "US1234_postfix", it automatically adds the prefix "[US1234]" to commit
# messages.
#
# Example
# =======
#
# git checkout -b US1234-some-cool-feature