From 0baed0b26828eb429b05fb68874a9308cf009159 Mon Sep 17 00:00:00 2001 From: samanthacsik Date: Fri, 27 Sep 2024 17:29:50 -0700 Subject: [PATCH] added note about usethis::use_git_config(init.defaultBranch = "main") to update git config --- index.html | 5 ++++- sections/5-RStudio.qmd | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 5be9f89..ded7037 100644 --- a/index.html +++ b/index.html @@ -576,7 +576,10 @@

Steps:

  • Open RStudio’s Terminal window (next to the Console) and run either git branch (this prints all local branches and highlights the one that you’re currently on) or git status (the first printed line should say On branch <branch_name>).

  • Click on the Git tab in the top right pane of RStudio. Next to the A white diamond with two purple squares, one directly above and one directly to the right, connected to the diamond by a line. symbol, you should see a dropdown menu that displays the name of your current branch.

  • -
  • If your current branch is named master, update the name to main. (If your branch is named main, you’re good to go! You can skip this step.) In the console, run usethis::git_default_branch_rename(from = "master", to = "main") to update your default branch name. Confirm that it updated by running git status again in your Terminal – the first printed line should now read, On branch main.

  • +
  • If your current branch is named master, update the name to main. (If your branch is named main, you’re good to go! You can skip this step.) In the console, run usethis::git_default_branch_rename(from = "master", to = "main") to update your default branch name. Confirm that it updated by running git status again in your Terminal – the first printed line should now read, On branch main.

    +