Skip to content

Commit

Permalink
Add screenshot of HTTPS vs SSH URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Oct 22, 2021
1 parent 4ef3e7d commit 3f2d7e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion connect-https-pat.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ Feel free to skip this section if you are new to Git (we mention some concepts a
HTTPS remote URLs look like `https://github.com/<OWNER>/<REPO>.git`.
SSH remote URLs look like `[email protected]:<OWNER>/<REPO>.git`.

*TO ADD: screenshot of making this choice in GitHub*
```{r}
#| echo = FALSE, fig.show = "hold",
#| out.width = "49%", out.height = "49%",
#| fig.alt = "Getting an HTTPS or SSH URL from GitHub"
knitr::include_graphics(c("img/github-https-url.png", "img/github-ssh-url.png"))
```

When you execute a command such as `git push origin my-cool-feature-branch`, Git looks up the URL you've stored for the `origin` remote and uses the protocol implicit in the URL's format.
The protocol is a game time decision.
Expand Down
Binary file added img/github-https-url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/github-ssh-url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f2d7e3

Please sign in to comment.