File tree Expand file tree Collapse file tree 1 file changed +46
-2
lines changed Expand file tree Collapse file tree 1 file changed +46
-2
lines changed Original file line number Diff line number Diff line change 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
+ ```
You can’t perform that action at this time.
0 commit comments