-
Notifications
You must be signed in to change notification settings - Fork 26
/
version_control.qmd
34 lines (18 loc) · 1.26 KB
/
version_control.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: "Getting our project under version control"
format: html
---
We now have the first version of our analysis so let's get it under version control. By default, the git version control pane is in the top right hand corner of RStudio. Find it and click on the **git** tab.
![](./assets/git_pane.png)
If you hover the mouse pointer over the yellow ? marks in GitHub, you'll see a tooltip telling us that the file is **untracked**. This means that git is not tracking versions of this file.
Tick **staged** for each file. In some future cases, you may want to stage only one or a few file to create a coherent commit (unit of change).
![](./assets/git_pane_added.png)
All of our files are now **staged**, ready for the first **commit**. Click on the **commit** button
![](./assets/commit.png)
Details of the commit will appear in the next panel. You need to specify a **commit message** -- something descriptive about the changes you've made. Since this is our first commit, we'll follow tradition and call it **First Commit**
Once you've typed a commit message, click on **Commit** and you're done.
![](./assets/first_commit.png)
The following messages from git will show.
<img src="assets/git_commit_message.png" width="750">
Click on **Close** and you are done.
***