You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: responses/commit-something.md
+38-11Lines changed: 38 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,22 +26,49 @@ In the first field, type a commit message. The commit message should briefly tel
26
26
27
27
The following steps will guide you through the process of committing a change on GitHub.
28
28
29
+
{% if preferences.gitTool == 'cli' %}
30
+
1. Check out to your branch:
31
+
```shell
32
+
git checkout {{ thePayload.ref }}
33
+
```
34
+
1. Create a new file named `_posts/0000-01-02-{{ user.username }}.md`.
35
+
1. Add the following content to your file:
36
+
```yaml
37
+
---
38
+
layout: slide
39
+
title: "Welcome to our second slide!"
40
+
---
41
+
Your text
42
+
Use the left arrow to go back!
43
+
```
44
+
1. Stage your new file:
45
+
```shell
46
+
git add _posts/0000-01-02-{{ user.username }}.md
47
+
```
48
+
1. After adding the text, commit the change and a commit message, check out the **Commits 101** drop-down, just above these instructions:
49
+
```shell
50
+
git commit -m "<YOUR-MESSAGE>"
51
+
```
52
+
1. Push your new commit to GitHub:
53
+
```shell
54
+
git push
55
+
```
56
+
{% else %}
29
57
1. Return to the "Code" tab
30
-
1. In the branch drop-down, select "{{ branch }}"
58
+
1. In the branch drop-down, select"{{thePayload.ref }}"
31
59
1. Click **Create new file**
32
60
1. In the "file name" field, type `_posts/0000-01-02-{{ user.username }}.md`
33
61
1. When you’re done naming the file, add the following content to your file:
34
-
35
-
---
36
-
layout: slide
37
-
title: "Welcome to our second slide!"
38
-
---
39
-
Your text
40
-
Use the left arrow to go back!
41
-
42
-
62
+
```yaml
63
+
---
64
+
layout: slide
65
+
title: "Welcome to our second slide!"
66
+
---
67
+
Your text
68
+
Use the left arrow to go back!
69
+
```
43
70
1. After adding the text, you can commit the change by entering a commit message in the text-entry field below the file edit view. For guidelines on commit messages, check out the **Commits 101** drop-down, just above these instructions
44
71
1. When you’ve entered a commit message, click **Commit new file**
45
-
72
+
{% endif %}
46
73
<hr>
47
74
<h3 align="center">Return to this issue for my response</h3>
0 commit comments