GitHub repo vs cgit

Is it recommended to use GH repo instead of cgit?
No.

First of all, cgit is not a repo but a (very lightweight) web frontend for browsing a repo. The actual repos are hosted on git.freebsd.org (whithout the c). Github works differently, offering the repo and a web frontend on the same routes.

It's not recommended to use Github, because it's just a read-only mirror of the official repo hosted by FreeBSD. As such, it can even "lag behind" a bit, while cgit will always show you the exact current state of the official repo.

Reasons to use Github might include
  • (for the project) visibility, Github is one of the "canonical" git hosters and people tend to look for source code there
  • a need for one of the "advanced" features of Github's UI (like flexible search, symbol identification, easy "git blame" browsing, etc) that cgit can't offer in the same way
  • contributing by Github's "pull request" workflow. I personally don't like that extra (and incompatible) contribution channel and really prefer a PR on bugzilla with a patch (git format-patch) attached, or for really complex changes, a review on phabricator. But I've seen src accepts and handles Github pull requests ... not sure what's the current practice for ports.
 
Back
Top