dellcloudedge/crowbar — pull request #401 by tserong (2012-04-02 06:32:48+00:00)
Title: dev: support cloning crowbar etc. into github organizations [2/4]

If DEV_GITHUB_ORG is set in ~/.build-crowbar.conf _instead_of_
DEV_GITHUB_ID, and you've got ~/.netrc with your regular github
credentials, you can work off a clone of the dellcloudedge
repo in a github organization, rather than in a person repo.
This means that the so-called "personal" remotes don't point to
your individual github repo, rather they point to the repos in
the org you're working out of.

Usage:

1) Make sure your ~/.netrc and ~/.build-crowbar.conf files look like this:

# cat ~/.netrc
machine github.com login YOUR_GH_USERNAME password YOUR_GH_PASSWORD
machine api.github.com login YOUR_GH_USERNAME password YOUR_GH_PASSWORD

# cat ~/.build-crowbar.conf
DEV_GITHUB_ORG='YOUR_GH_ORG'

2) Clone the crowbar repo from https://github.com/dellcloudedge/crowbar.git

3) Run crowbar/dev setup

This will create missing forks etc. in your organization.

Note that if DEV_GITHUB_ORG is set and you are using "dev backup" to push
your local changes to github, this will no longer do a force push (which
would otherwise stomp on other people's changes), so if "dev backup" fails
to push some refs, run "dev fetch" and "dev sync" first.

dev | 54 +++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 49 insertions(+), 5 deletions(-)