38
38
39
39
You are hitting ` git init ` means you want to initialize the current directory as GIT repository.
40
40
41
- The following gif files show initializing a new repository and a hidden subfolder containing all data structure required for version control.
41
+ The following GIF show initializing a new repository and a hidden subfolder containing all data structure required for version control.
42
42
43
43
![ GIF showing git init command] ( /assets/images/2019-12-20-basic-git-commands/git-init.gif )
44
44
65
65
66
66
You can clone any public repository from the platforms like GitHub, BitBucket, GitLab, and other GIT hosting platforms.
67
67
68
- The followig gif shows the ` git clone ` command
68
+ The following GIF shows the ` git clone ` command
69
69
70
70
![ GIF showing git clone command] ( /assets/images/2019-12-20-basic-git-commands/git-clone.gif )
71
71
@@ -95,7 +95,7 @@ You can stage and take a snapshot of the current changes in a single command als
95
95
96
96
Staging your changes first and then taking snapshot gives you complete control over the repository's history.
97
97
98
- The followig gif shows the ` git add ` command
98
+ The following GIF shows the ` git add ` command
99
99
100
100
![ GIF showing git add command] ( /assets/images/2019-12-20-basic-git-commands/git-add.gif )
101
101
@@ -112,7 +112,7 @@ You can write a meaningful message to the commit. It is recommended to write a c
112
112
113
113
If you are committing a new feature to your project then your commit message should be ` "Add <feature-name> feature" ` .
114
114
115
- The followig gif shows the ` git commit ` command
115
+ The following GIF shows the ` git commit ` command
116
116
117
117
![ GIF showing git commit command] ( /assets/images/2019-12-20-basic-git-commands/git-commit.gif )
118
118
@@ -142,7 +142,7 @@ HP@Gaurav MINGW64 /e/directory/example (master)
142
142
$
143
143
144
144
```
145
- The followig gif shows the ` git status ` command
145
+ The following GIF shows the ` git status ` command
146
146
147
147
![ GIF showing git status command] ( /assets/images/2019-12-20-basic-git-commands/git-status.gif )
148
148
@@ -158,7 +158,7 @@ $ git branch
158
158
HP@Gaurav MINGW64 /e/directory/example (master)
159
159
$
160
160
```
161
- The followig gif shows the ` git branch ` command
161
+ The following GIF shows the ` git branch ` command
162
162
163
163
![ GIF showing git branch command] ( /assets/images/2019-12-20-basic-git-commands/git-branch.gif )
164
164
@@ -189,13 +189,13 @@ If your teammate made commits to the remote branch and you want to reflect these
189
189
190
190
This command will check if there are any updates on the remote branch as compared to your local environment, if yes, then it will update your local environment with these changes. If no, then it will do nothing.
191
191
192
- The followig gif shows the ` git pull ` command
192
+ The following GIF shows the ` git pull ` command
193
193
194
194
![ GIF showing git pull command] ( /assets/images/2019-12-20-basic-git-commands/git-pull.gif )
195
195
196
196
## 8. ` git push `
197
197
198
- ` git push ` updates the remote repository with any commits made locally to a brach
198
+ ` git push ` updates the remote repository with any commits made locally to a branch
199
199
200
200
```
201
201
$ git push origin <branch-name-you-have made commits on>
@@ -222,15 +222,15 @@ To https://github.com/gauravkukade/example.git
222
222
HP@Gaurav MINGW64 /e/directory/example (master)
223
223
$
224
224
```
225
- The followig gif shows the ` git push ` command
225
+ The following GIF shows the ` git push ` command
226
226
227
227
![ GIF showing git push command] ( /assets/images/2019-12-20-basic-git-commands/git-push.gif )
228
228
229
229
You are here means you like the post and hence here is your bonus content.
230
230
231
231
### How to create a new branch locally
232
232
233
- You can create a new branch loacally using the following command
233
+ You can create a new branch locally using the following command
234
234
```
235
235
$ git checkout -b <your-new-branch-name>
236
236
0 commit comments