Skip to content

Commit aaa642e

Browse files
authored
Initial commit.
1 parent 3a307a9 commit aaa642e

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,46 @@
1-
# common-git-commands
2-
A list of commonly used Git commands.
1+
## List of commonly used Git commands.
2+
3+
### Status
4+
```terminal
5+
$ git status
6+
```
7+
8+
### Pull changes
9+
```terminal
10+
$ git pull
11+
```
12+
13+
### Add changed file / folder
14+
```terminal
15+
$ git add <file/folder-name>
16+
```
17+
18+
### Add all changed files
19+
```terminal
20+
$ git add .
21+
```
22+
23+
### Revert changed file / folder
24+
```terminal
25+
$ git checkout <file/folder-name>
26+
```
27+
28+
### Revert all the changed files
29+
```terminal
30+
$ git checkout .
31+
```
32+
33+
### Commit changes
34+
```terminal
35+
$ git commit -m "Your message here."
36+
```
37+
38+
### Push changes
39+
```terminal
40+
$ git push
41+
```
42+
43+
### Clone new repository
44+
```terminal
45+
$ git clone <repo-url>
46+
```

0 commit comments

Comments
 (0)