Skip to content

Commit

Permalink
Add a figure for use_github()
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Jun 21, 2022
1 parent d62c3f2 commit c735079
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion child-clone-a-github-repo.Rmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```{r }
```{r}
#| echo = FALSE, fig.align = "center", out.width = "60%",
#| fig.alt = "Clone a remote repo."
knitr::include_graphics("img/new-project-github-first.jpeg")
Expand Down
Binary file added img/use_github.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion usage-existing-project-github-last.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,18 @@ usethis::use_github()
#> ✓ Opening URL 'https://github.com/jennybc/myrepo'
```

```{r}
#| echo = FALSE, fig.align = "center", out.width = "60%",
#| fig.alt = "usethis::use_github() connects a local repo to a new GitHub repo."
knitr::include_graphics("img/use_github.jpeg")
```

`usethis::use_github()` does the following:

* Creates a new repo on GitHub.
* Configures that new repo as the `origin` remote for the local repo.
* Sets up your local default branch (e.g. `main`) to track same on `origin`.
* Sets up your local default branch (e.g. `main`) to track same on `origin` and
does an initial push.
* Opens the new repo in your browser.

### Create and connect a GitHub repo without usethis
Expand Down

0 comments on commit c735079

Please sign in to comment.