public
Description: Developer workflow convenience scripts
Homepage:
Clone URL: git://github.com/pivotal/git_scripts.git
name age message
file .pairs Wed Oct 28 13:40:32 -0700 2009 Switch from back ticks to using system, so name... [Matthew O'Connor]
file README.md Thu Oct 29 11:39:57 -0700 2009 use new URL for clone step [joshsusser]
file git-about Wed Oct 14 10:55:42 -0700 2009 add git-about script [Josh Susser]
file git-pair Wed Oct 28 13:40:32 -0700 2009 Switch from back ticks to using system, so name... [Matthew O'Connor]
file git-project Thu Oct 15 10:22:00 -0700 2009 add install.sh and README.md [Josh Susser & Sam Pierson]
file git-superpull Mon Oct 26 14:02:37 -0700 2009 add superpull command [Josh Susser & Sam Pierson]
file install.sh Thu Oct 15 10:22:00 -0700 2009 add install.sh and README.md [Josh Susser & Sam Pierson]
README.md

Git Scripts

These scripts are helpers for managing developer workflow when using git repos hosted on GitHub. Put them in ~/bin and they can be run as standard git commands like git about.

Installation

$ git clone git://github.com/pivotal/git_scripts.git
$ cd git_scripts
$ ./install.sh

git-about

git about shows settings set by git-pair and git-project

git-pair

$ git pair js sp
user.name=Josh Susser & Sam Pierson
user.email=pair+jsusser+sam@pivotallabs.com

Use git pair to set the git config user info that sets the commit user metadata. You'll need to create a .pairs config file to map initials to names and email ids. The example file:

# .pairs - configuration for 'git pair'
# place in project or home directory
pairs:
  eh: Edward Hieatt
  js: Josh Susser; jsusser
  sf: Serguei Filimonov; serguei
email:
  prefix: pair
  domain: pivotallabs.com

You can put the .pairs file in your project repo root directory and check it into git, or you can put it in your ~ directory so it's available to all projects on the workstation.

git-project

$ git project pivots

This script sets the user account you will use to access repos hosted on github.com. It creates a symlink from id_github_current to id_github_pivotal<project>, which switches the SSH key you are currently using to access GitHub repos. Make sure you have the following lines in your .ssh/config file:

Host github.com
  User git
  IdentityFile /Users/pivotal/.ssh/id_github_current