-
Notifications
You must be signed in to change notification settings - Fork 62
Integration with Github
d0k edited this page Sep 12, 2010
·
2 revisions
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
git config github.user GITHUB_USER
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
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