Every repository with this icon (
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.pairs | Wed Oct 28 13:40:32 -0700 2009 | |
| |
README.md | Thu Oct 29 11:39:57 -0700 2009 | |
| |
git-about | Wed Oct 14 10:55:42 -0700 2009 | |
| |
git-pair | Wed Oct 28 13:40:32 -0700 2009 | |
| |
git-project | Thu Oct 15 10:22:00 -0700 2009 | |
| |
git-superpull | Mon Oct 26 14:02:37 -0700 2009 | |
| |
install.sh | Thu Oct 15 10:22:00 -0700 2009 |
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







