@@ -63,7 +63,7 @@ To earn your **`Hacktoberfest T-Shirt`** or tree reward, you must register and m
63
63
</ul ><br >
64
64
<hr >
65
65
66
- ### 2. You should have an account on GitHub if you you dont 't have an account then simply make it.
66
+ ### 2. You should have an account on GitHub if you you don 't have an account then simply make it.
67
67
68
68
### 3. You will need a text editor accoring to your comfort , I prefer Vs code
69
69
@@ -88,35 +88,35 @@ To earn your **`Hacktoberfest T-Shirt`** or tree reward, you must register and m
88
88
<ul >
89
89
<li >Fork this Repository or Project</li >
90
90
<li > This will create a copy of this repository in your account.</li >
91
- <img width =" 50% " align =" center " src =" fork.png " ><br ><br >
91
+ <img width =" 50% " align =" center " src =" images/ fork.png" ><br ><br >
92
92
<li >Copy the link of the Repository</li ><br >
93
- <img width =" 50% " align =" center " src =" clone.png " ><br ><br >
93
+ <img width =" 50% " align =" center " src =" images/ clone.png" ><br ><br >
94
94
<li >Open Git bash where you want to clone the project and clone it </li >
95
95
<li >Clone it</li >
96
96
<li >Run Command and Hit Enter <br >
97
97
98
98
```
99
99
git clone <the link you just copied>
100
100
```
101
- <img width =" 70% " align =" center " src =" gitclone.png " ><br ><br >
101
+ <img width =" 70% " align =" center " src =" images/ gitclone.png" ><br ><br >
102
102
103
103
In this case it is <br > ``` git clone https://github.com/arpit456jain/Getting-Started-with-open-source.git ```
104
104
</li >
105
105
<li > After you hit enter you will notice that some downloading will start. It's actually cloning of repo form your GitHub repository to your local system.</li ><br >
106
- <img width =" 60% " align =" center " src =" clonning.png " >
106
+ <img width =" 60% " align =" center " src =" images/ clonning.png" >
107
107
<li > After this you will notice a folder is created with the name of repository </li ><br >
108
- <img width =" 15% " align =" center " src =" folder.png " ><br ><br >
108
+ <img width =" 15% " align =" center " src =" images/ folder.png" ><br ><br >
109
109
<li >Then just close the Git bash and open this folder in your preferred text editor...</li ><br >
110
110
<li >Here is an example in VS Code. </li ><br >
111
- <img width =" 100% " align =" center " src =" vscode.png " ><br ><br >
111
+ <img width =" 100% " align =" center " src =" images/ vscode.png" ><br ><br >
112
112
</ul >
113
113
114
114
### 5. Now Make necessary changes and commit them , lets say you have to add your name in readme , you already set up the project in local system . Now before starting your work always rembember to pull latest change from the main Repo.
115
115
116
116
<ul >
117
117
118
118
<li >Fetch And Merge </li ><br >
119
- <img width =" 50% " align =" center " src =" fetch.png " ><br >
119
+ <img width =" 50% " align =" center " src =" images/ fetch.png" ><br >
120
120
<br >
121
121
<li >Pull these changes in your local system</li >
122
122
<br >
@@ -130,7 +130,7 @@ To earn your **`Hacktoberfest T-Shirt`** or tree reward, you must register and m
130
130
2. Reset the main branch of origin to upstream<br >
131
131
git reset --hard upstream/main<br ><br >
132
132
133
- <img width =" 50% " align =" center " src =" pullorigin.png " ><br ><br >
133
+ <img width =" 50% " align =" center " src =" images/ pullorigin.png" ><br ><br >
134
134
135
135
<li > make a new branch and then make the changes , then commit them. make sure to commit to the new branch <br >
136
136
<b >Never commit in master branch</b > </li >
@@ -152,13 +152,13 @@ git push origin new_branch_name
152
152
<ul >
153
153
<li >when you push the changes you will notice a new branch will be created on GitHub and there will be a green button for creating pull request. Click on it.</li >
154
154
<br >
155
- <img width =" 80% " align =" center " src =" createPR.png " ><br ><br >
155
+ <img width =" 80% " align =" center " src =" images/ createPR.png" ><br ><br >
156
156
<li >After this a new page will be open like this</li >
157
- <img width =" 80% " align =" center " src =" PR.png " ><br ><br >
157
+ <img width =" 80% " align =" center " src =" images/ PR.png" ><br ><br >
158
158
<li >Now add a title and description of your PR and click on create pull request.</li >
159
159
<br >
160
160
<li >Congrats 🎉 your Pull Request is created</li ><br >
161
- <img width =" 80% " align =" center " src =" PRcreated.png " ><br ><br >
161
+ <img width =" 80% " align =" center " src =" images/ PRcreated.png" ><br ><br >
162
162
</ul >
163
163
164
164
---
@@ -167,7 +167,7 @@ git push origin new_branch_name
167
167
168
168
### 1. Updates were rejected or failed to push some refs.
169
169
170
- <img width =" 80% " align =" center " src =" error1.png " ><br >
170
+ <img width =" 80% " align =" center " src =" images/ error1.png" ><br >
171
171
172
172
<p > This is most common error you will find and its pretty easy to solve . </p >
173
173
<br >
@@ -184,7 +184,7 @@ Note : if your repo is a forked one and its some commit behind then first fetch
184
184
185
185
### 2. Unable to detect identity.
186
186
187
- <img width =" 80% " align =" center " src =" Error2.png " ><br >
187
+ <img width =" 80% " align =" center " src =" images/ Error2.png" ><br >
188
188
189
189
<p > Its pretty easy to solve . </p >
190
190
<br >
200
200
201
201
### 3. Remote origin already exists.
202
202
203
- <img width =" 80% " align =" center " src =" Error3.png " ><br >
203
+ <img width =" 80% " align =" center " src =" images/ Error3.png" ><br >
204
204
205
205
<p >It is easy to solve<p >
206
206
<br >
@@ -212,7 +212,7 @@ git remote set-url origin <repository url>
212
212
213
213
### 3. Refusing to merge unrelated histories.
214
214
215
- <img width =" 80% " align =" center " src =" Error4.png " ><br >
215
+ <img width =" 80% " align =" center " src =" images/ Error4.png" ><br >
216
216
217
217
<p >This error appears when some of your ambiguous actions confuse Git on how to function further.<p >
218
218
<br >
@@ -224,7 +224,7 @@ git pull origin master –allow-unrelated-histories
224
224
225
225
### 3. OpenSSL SSL_read: Connection was reset.
226
226
227
- <img width =" 80% " align =" center " src =" Error5.png " ><br >
227
+ <img width =" 80% " align =" center " src =" images/ Error5.png" ><br >
228
228
229
229
<p >This is the SSL certificate of the server that has not been signed by a third party, so an error is reported.<p >
230
230
<br >
0 commit comments