Session 4
September 14, 2023
If you turned an existing project into a git repo, how did it go?
Ways to create a git repo:
git init
from the command line inside of project directoryusethis::use_git()
in the R console in a RStudio projectgit push
and git pull
to synchronize with GitHubThe most common git commands can be used with the RStudio GUI.
.gitignore
.DS_Store
)Exercise
Modify .gitignore
to exclude all files ending in .pdf
from git tracking. Make a commit for this change
git_sitrep()
use_github()
Put a (real) project repo on GitHub (e.g. with use_github()
) and share the link on Slack (if it can be made public)