Automated Version Control
|
|
Setting Up Git
|
|
Creating a Repository
|
|
Tracking Changes
|
Files can be stored in a project’s working directory (which users see), the staging area (where the next commit is being built up) and the local repository (where commits are permanently recorded).
Always write a log message when committing changes.
|
Ignoring Things
|
|
Remotes in GitHub
|
A local Git repository can be connected to one or more remote repositories.
Use the HTTPS protocol to connect to remote repositories until you have learned how to set up SSH.
git push copies changes from a local repository to a remote repository.
git pull copies changes from a remote repository to a local repository.
|
Collaborating
|
|
Conflicts
|
Conflicts occur when two or more people change the same file(s) at the same time.
The version control system does not allow people to overwrite each other’s changes blindly, but highlights conflicts so that they can be resolved.
|
Open Science
|
|
Using Git from RStudio
|
|