Automated Version Control
Figure 1
![Comic: a PhD student sends "FINAL.doc" to their supervisor, but after several increasingly intense and frustrating rounds of comments and revisions they end up with a file named "FINAL_rev.22.comments49.corrections.10.#@$%WHYDIDCOMETOGRADSCHOOL????.doc"](../fig/phd101212s.png)
Figure 2
Figure 3
Figure 4
Setting Up Git
Creating a Repository
Figure 1
Werewolf
vs dracula by b-maze
/ Deviant Art. Mars
by European Space Agency / CC-BY-SA 3.0
IGO. Pluto
/ Courtesy NASA/JPL-Caltech. Mummy
© Gilad Fried / The Noun
Project / CC BY
3.0. Moon ©
Luc Viatour / https://lucnix.be / CC BY-SA
3.0.
Tracking Changes
Figure 1
Figure 2
Exploring History
Figure 1
Figure 2
Ignoring Things
Remotes in GitLab
Figure 1
![Creating a Project on GitLab (Step 1)](../fig/gitlab-create-repo-01.png)
Figure 2
![Creating a Project on GitLab (Step 2)](../fig/gitlab-create-repo-02.png)
Figure 3
![Creating a Project on Gitlab (Step 3)](../fig/gitlab-create-repo-03.png)
Figure 4
Figure 5
Figure 6
![Where to Find Repository URL on GitLab](../fig/gitlab-find-repo-string.png)
Figure 7
Collaborating
Figure 1
![screenshot of repository page with Manage then Members selected, showing how to add Collaborators in a GitLab project](../fig/gitlab-add-collaborators.png)
Figure 2
Conflicts
Figure 1
Open Science
Licensing
Citation
Hosting
Supplemental: Using Git from RStudio
Figure 1
![RStudio screenshot showing the file menu dropdown with "New Project..." selected](../fig/RStudio_screenshot_newproject.png)
Figure 2
![RStudio screenshot showing New Project dialog window with "Create project from existing directory" selected](../fig/RStudio_screenshot_existingdirectory.png)
Figure 3
![](../fig/RStudio_screenshot_navigateexisting.png)
Figure 4
![RStudio window after new project is created with large arrow pointing to vertical Git menu bar.](../fig/RStudio_screenshot_afterclone.png)
Figure 5
![](../fig/RStudio_screenshot_editfiles.png)
Figure 6
![RStudio screenshot showing the Git menu dropdown with "Commit..." selected](../fig/RStudio_screenshot_commit.png)
Figure 7
![](../fig/RStudio_screenshot_review.png)
Figure 8
![RStudio screenshot showing the git menu dropdown with "History" selected](../fig/RStudio_screenshot_history.png)
Figure 9
![](../fig/RStudio_screenshot_viewhistory.png)
Figure 10
![RStudio screenshot showing .gitignore open in the editor pane with the files .Rproj.user, .Rhistory, .RData, and *.Rproj added to the end](../fig/RStudio_screenshot_gitignore.png)