github-gem icon indicating copy to clipboard operation
github-gem copied to clipboard

Cannot use `github browse` when 'origin' has been renamed

Open ghost opened this issue 14 years ago • 1 comments

I have a repo and I've renamed the 'origin' branch to 'github', so using

github browse

returns

Error: missing remote 'origin'

It'd be great if it were possible to specify the remote you want to browse.

ghost avatar Oct 05 '11 08:10 ghost

It turns out you can:

$ git config github.origin $new_origin_remote_name

However this still needs to be documented.

aspiers avatar Mar 07 '13 00:03 aspiers