top | item 45712185

(no title)

kawsper | 4 months ago

I always thought it would have been better, and less confusing for newcomers, if GitHub had named the default remote “github”, instead of origin, in the examples.

discuss

order

tobylane|4 months ago

If I clone my fork, I always add the upstream remote straight away. Origin and Upstream could each be github, ambiguous.

pwdisswordfishy|4 months ago

GitHub could not name it so, because it's not up to GitHub to choose.

seba_dos1|4 months ago

There are places where it does choose, but arguably it makes sense for it to be consistent with what you get when using "git clone".

masklinn|4 months ago

How is it less confusing when your fork is also on github?

matrss|4 months ago

Requiring a fork to open pull requests as an outsider to a project is in itself a idiosyncrasy of GitHub that could be done without. Gitea and Forgejo for example support AGit: https://forgejo.org/docs/latest/user/agit-support/.

Nevertheless, to avoid ambiguity I usually name my personal forks on GitHub gh-<username>.

grimgrin|4 months ago

agreed, you'd need a second name anyway. and probably "origin" and "upstream" is nicer than "github" and "my-fork" because.. the convention seems like it should apply to all the other git hosts too: codeberg, sourcehut, tfs, etc