News for hackers. Stuff that matters.
Re:Manage GitHub Issues with the command line by chimeracoder on Sunday April 21, 2013 @12:28PM (#5585318)
Unfortunately, this only seems to work on the remote named 'origin'. If your branch corresponding to GitHub is named something else (ie, 'github'), it won't work.

Nice work otherwise, though - I've been thinking about writing something like this for my own purposes in Go for a while now; glad to see someone else had the same problem.

If I have some time later today, I'll put in a pull request... unless someone beats me to the punch.

Re:Manage GitHub Issues with the command line by stephencelis on Sunday April 21, 2013 @01:51PM (#5585630)
It actually lets you do this already, though the documentation is relegated to a manpage that doesn't get installed automatically. It checks, in order, for:

  - $GHI_REPO env var
  - git config ghi.repo
  - remote named "upstream"
  - remote named "origin"
So you can just use "git config ghi.repo username/reponame" to get the behavior you want.