RFR: Section on cloning [v3]
Jesper Wilhelmsson
jwilhelm at openjdk.java.net
Fri Aug 13 00:04:53 UTC 2021
On Thu, 12 Aug 2021 23:35:50 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> How do we motivate recommending https for upstream? I mean it's not as if people can push regardless. Is there a git convention to use https for read only repos?
>
> GitHub defaults to https when you click on the green "Code" button to get the URL of a repo to clone. The Skara tooling also uses https URLs for openjdk/jdk in its examples (e.g., the example of fetching a pull request locally for testing). It seems better to suggest anonymous https for remotes that you don't need to push to (such as the upstream openjdk/jdk).
>
> For the user's personal fork it really doesn't matter, so maybe it's better to drop that part of my suggestion (it's simpler too). So perhaps this?
>
>
> $ git clone git at github.com:JesperIRL/jdk.git
> $ cd jdk
> $ git remote add upstream https://github.com/openjdk/jdk.git
Ok. Changed.
-------------
PR: https://git.openjdk.java.net/guide/pull/59
More information about the guide-dev
mailing list