magit / forge

Work with Git forges from the comfort of Magit
GNU General Public License v3.0
1.31k stars 116 forks source link

Extremely hard to configure forge to use with github enterprise #647

Closed jbulow closed 7 months ago

jbulow commented 7 months ago

Spent many hours trying to configure magit/forge to work with GHE. The error just say: (anonymized URL)

Cannot determine forge repository.  git@github.mycompany.com:org/repo.git isn’t a forge url

No hint on how to fix it. Read the manual several times (that seems to be more of a developers guide). Could not find any useful examples in the manual. In the end, it seems like a few lines showing how to load forge with use-package and the necessary configuration and initialization should help a lot.

Normal magit works fine with my GHE instance. Not relevant here, but I have also configured the github CLI tool to use the GHE instance.

I just fail to understand why the manual is so vague about how to setup forge.