diff --git a/child-clone-a-github-repo.Rmd b/child-clone-a-github-repo.Rmd index 983ae6c..4e63566 100644 --- a/child-clone-a-github-repo.Rmd +++ b/child-clone-a-github-repo.Rmd @@ -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") diff --git a/img/use_github.jpeg b/img/use_github.jpeg new file mode 100644 index 0000000..77b9b22 Binary files /dev/null and b/img/use_github.jpeg differ diff --git a/usage-existing-project-github-last.Rmd b/usage-existing-project-github-last.Rmd index c9d97ae..1bd845e 100644 --- a/usage-existing-project-github-last.Rmd +++ b/usage-existing-project-github-last.Rmd @@ -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