introduction-to-github icon indicating copy to clipboard operation
introduction-to-github copied to clipboard

Update the git clone link from https to ssh

Open mosescb opened this issue 4 years ago • 1 comments

Bug Report

Current behavior Currently in Step 4: Create a branch,

  • 2.Clone this repository: It shows a https based link which is kinda obsolete to push changes to remote(Since Aug 13 2021, user id + password based authentication is dropped). So, when we try to push it asks for username and password and it fails.

Reproduction Steps to reproduce the behavior in the course:

  1. Go to Step 4: Create a branch -> Clone the repo with https based link as shown there -> 5. Push the branch to GitHub
  2. Execute the command in 5. Push the branch to GitHub:
  3. Enter Credentials
  4. See error

Expected behavior Show ssh based URL for clone, git push should work fine then.

Possible solution Provide ssh based clone URL and ask the user to setup ssh keys as that's the Github way of doing it anyhow now.

Additional context image

mosescb avatar Dec 23 '21 18:12 mosescb

introduction-to-github/responses/03_create-a-branch.md : git clone {{ thePayload.repository.clone_url }}

mosescb avatar Dec 23 '21 18:12 mosescb