I want to access Github via Https instead of SSH.

Asked 2 years ago, Updated 2 years ago, 80 views

https://employment.en-japan.com/engineerhub/entry/2017/01/31/110000

I used this site to set up Github, but
I cannot access Github under my proxy environment, and I heard that
You can access it via https instead of ssh.

I don't know how to do it
Could you please let me know

The environment is Windows 10

git github

2022-09-30 21:28

1 Answers

It is written in Github's help, so please try this one.

https://help.github.com/articles/which-remote-url-should-i-use/ #cloning-with-https-urls-recommended

AdditionalDescribes what changes in the reference URL when using https.

https://employment.en-japan.com/engineerhub/entry/2017/01/31/110000

Verifying SSH connectivity to GitHub

  • You can skip it because it says you can't connect.

Copy repository names created in GitHub

  • On the GitHub site, click Clone or download to the right of the repository page and leave the first Clone with HTTP state.Copy the URL.

  • You can get URLs like https://github.com/[Username]//[Repository Name].git]

  • Run the command below to copy the repository locally.

  • git clone https://github.com/ [username] // [Repository name].git

On the GitHub site, click Clone or download to the right of the repository page and leave the first Clone with HTTP state.Copy the URL.

You can get URLs like https://github.com/ [username] // [repository name].git]

Copy the repository locally by executing the following command:

git clone https://github.com/ [username] // [Repository name].git

Push to GitHub

  • According to the github help, asks for the Github ID/PASS when you push.
  • Please enter your registered ID/PASS to see if the push works.

I think the above parts will be different from the contents of the reference URL when you use the Github repository on https.


2022-09-30 21:28

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.