File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Now clone the forked repository to your machine. Go to your GitHub account, open
98
98
99
99
Open a terminal and run the following git command:
100
100
101
- ```
101
+ ``` bash
102
102
git clone " url you just copied"
103
103
```
104
104
@@ -108,7 +108,7 @@ where "url you just copied" (without the quotation marks) is the url to this rep
108
108
109
109
For example:
110
110
111
- ```
111
+ ``` bash
112
112
git clone git@github.com:this-is-you/first-contributions.git
113
113
```
114
114
@@ -118,19 +118,19 @@ where `this-is-you` is your GitHub username. Here you're copying the contents of
118
118
119
119
Change to the repository directory on your computer (if you are not already there):
120
120
121
- ```
121
+ ``` bash
122
122
cd first-contributions
123
123
```
124
124
125
125
Now create a branch using the ` git switch ` command:
126
126
127
- ```
127
+ ``` bash
128
128
git switch -c your-new-branch-name
129
129
```
130
130
131
131
For example:
132
132
133
- ```
133
+ ``` bash
134
134
git switch -c add-alonzo-church
135
135
```
136
136
@@ -144,13 +144,13 @@ If you go to the project directory and execute the command `git status`, you'll
144
144
145
145
Add those changes to the branch you just created using the ` git add ` command:
146
146
147
- ```
147
+ ``` bash
148
148
git add Contributors.md
149
149
```
150
150
151
151
Now commit those changes using the ` git commit ` command:
152
152
153
- ```
153
+ ``` bash
154
154
git commit -m " Add your-name to Contributors list"
155
155
```
156
156
@@ -160,7 +160,7 @@ replacing `your-name` with your name.
160
160
161
161
Push your changes using the command ` git push ` :
162
162
163
- ```
163
+ ``` bash
164
164
git push -u origin your-branch-name
165
165
```
166
166
You can’t perform that action at this time.
0 commit comments