Skip to content

Integration with Github

d0k edited this page Sep 12, 2010 · 2 revisions

Setting up network branch visualization (github-hosted repos only)

Look at the ‘network’ page of the repo, the one that looks like this:

  • http://github.com/#{@github_user}/#{@github_repo}/network

Then within your repo, run

  1. git config github.user GITHUB_USER
  2. git config github.repo GITHUB_REPO

(using the values from the URL above).

If you want an override-able global default for the github_user, run

  1. git config --global github.user GITHUB_USER

You can also try this ridiculous snippet (which greps for a github URL in the git remote setup)

  • git config remote.origin.url | ruby -e '$_=STDIN.readlines; $_.join(" ") =~ %r{github\.com[\:/]([\w\-]+)/([\w\-]+)\.git}; `git config github.user #{$1}; \ngit config github.repo #{$2}` ' ; git config --list | grep github