GitXplorerGitXplorer
j

herogit

public
34 stars
2 forks
1 issues

Commits

List of commits on branch master.
Unverified
e04aeaeb9e8a72f06b390b050c01821c66fbae44

Merge pull request #2 from eval/master

jjbarnette committed 14 years ago
Unverified
a09f37bc964bf6abd719ef5fc7eb2de8e74565d5

preventing 'Could not initialize herogit: undefined method `get_credentials' for class `Heroku::Command::Auth''

eeval committed 14 years ago
Unverified
5cf7b14b0081d69411e8d58da0b7ae6dd65a4bfd

Only use creds from git if they exist. (Hat tip to Dr. Nic)

jjbarnette committed 15 years ago
Unverified
b7a928ed9e1604f41a5f89f40fe026d189a666ff

Spaces, ugh.

jjbarnette committed 15 years ago
Unverified
1e35d03af0c537d214c23c8a8ae958552baae822

Add a little README.

jjbarnette committed 15 years ago
Unverified
434088f203f3cd03df7db133e164124d5ee4d273

First.

jjbarnette committed 15 years ago

README

The README file for this repository.

Herogit: Git Love for Heroku

This plugin allows Heroku config information (credentials and app/branch mapping) to be stored in Git's config files. It brutally monkeypatches Heroku::Command::Auth and Heroku::Command::Base, so I'd love some help from anybody with experience writing better-behaved Heroku plugins.

Credentials

I have a couple of personal Heroku projects, plus a fair number for work. I'm sick of editing ~/.heroku/credentials when I switch personas. Let's fix that. In your project repo:

git config --add heroku.email jbarnette@gmail.com
git config --add heroku.password 0mgponies

If these two git config entries exist, they'll be used instead of ~/.heroku/credentials.

Apps

I have two Heroku apps for a single work project; one for next (staging) and one for master (production). Since I also have multiple remotes pointing at Heroku, the command-line tool gets confused and asks me to supply --app manually.

$ heroku config
No app specified.
Run this command from app folder or set it adding --app <app name>

Lame. Let's fix it:

git config --add heroku.app.next myapp-next
$ heroku config # totally works!

Add a heroku.app.<branchname> config entry for each branch you want to strongly associate with a Heroku app. Specifing --app still overrides this, natch.

Installation

heroku plugins:install git://github.com/jbarnette/herogit.git

License

This work is hereby placed in the public domain.