Git URL Rewriting can break ability to "Browse" #436
-
In order to use multiple GitHub accounts, I use Git URL-rewriting (sort of like this example in the Tips and Tricks document, but crucially, the URL in my rewriting rules isn't For example, one rewriting rule looks like this: [url "git@github-home"]
insteadOf = [email protected] Now in Emacs, when I do a Or in Elisp: (let ((default-directory "/Users/chris.clark/Projects/py-demo"))
(forge--format (forge-get-repository 'stub) 'pullreqs-url-format))
I feel like there's probably a way to tell Anyone else have this problem or know how to make |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Ugh, I used the wrong GitHub account to post that question... the tribulations of multiple GitHub accounts! I was able to temporarily get around this locally by making forge use
Not sure if that's a good idea for others or not. |
Beta Was this translation helpful? Give feedback.
-
For posterity (I should have followed up a long time ago!), I no longer have this problem. Turns out: URL rewriting is not necessary if you have multiple GitHub accounts. Instead, it's much easier to set a |
Beta Was this translation helpful? Give feedback.
For posterity (I should have followed up a long time ago!), I no longer have this problem.
Turns out: URL rewriting is not necessary if you have multiple GitHub accounts.
Instead, it's much easier to set a
core.sshCommand
for each account in your git config. I documented my current workflow here: https://www.cfclrk.com/articles/github_identities.html