You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2020. It is now read-only.
It is unclear to me why we are relying on the existence of a remote named origin. I suggest that we do not assume that a remote named origin is always present or that it has any special meaning.
I also suggest that we mimic Git's own treatment of origin, which is non-special. For example, the ability of git checkout foo to automatically perform git checkout -b foo origin/foo is actually not specific to origin, but it actually searches all remotes and only does the expansion when branch name is unique: https://git-scm.com/docs/git-checkout#_description
We should make sure that we print the appropriate error messages for any commands that are dependent on having at least one remote.
It is unclear to me why we are relying on the existence of a remote named
origin. I suggest that we do not assume that a remote namedoriginis always present or that it has any special meaning.I also suggest that we mimic Git's own treatment of
origin, which is non-special. For example, the ability ofgit checkout footo automatically performgit checkout -b foo origin/foois actually not specific toorigin, but it actually searches all remotes and only does the expansion when branch name is unique: https://git-scm.com/docs/git-checkout#_descriptionWe should make sure that we print the appropriate error messages for any commands that are dependent on having at least one remote.