-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevops-00-git-basics-final
More file actions
48 lines (38 loc) · 940 Bytes
/
Copy pathdevops-00-git-basics-final
File metadata and controls
48 lines (38 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# devops-00-git-basics-final
Initialize Git on the current folder
```
git init
```
Set the user name for the current repository to "fake-user"
```
git config user.name "fake-user"
```
Check the status of the Git
```
git status
```
Commit the changes to the current repository with the message "docs : adding answers"
```
git commit -m "docs : adding answers"
```
Commit the updated files directly, skipping the staging environment with following message "test : adding missing tests"
```
git commit -a -m "test : adding missing tests"
```
View the history of commits for the repository
```
git log
```
Show the possible options for the status command in command line
```
git status -help
```
Update the current branch from its origin using a single command
```
git pull origin
```
push the current branch to its default remote origin
```
git push origin
```
## Those are commands, you will certainly use one day on a daily basis.