-
Notifications
You must be signed in to change notification settings - Fork 2
/
Session12-SA-Devops-Git.txt
64 lines (44 loc) · 1.07 KB
/
Session12-SA-Devops-Git.txt
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
SCM : Source Code Management
Benefits:
Version Control
Backup
Collaborations
Generating Release node
Version Control System:
Centralized
Distributed
Pull Request: PR
SCM (Purpose)
1. Track the modification to a source code repository.
2. Maintain all the history. it will also help us to resolve the conflict
3. Version control
Benefit:
1. Backup of the code
2. Version history
3. Generate release note.
4. Work together in teams
Source code Management tools:
1. Git
2. Bitbucket
3. Subversion
4. Gitlab
5. Github
What is Git:
Git is a version control system for tracking changes in computer files.
Github: Web based git repositories
Bitbucket:
Gitlab
create folder
#intialize the git
git init
#Add the Staging
git add .
#check the status
git status
#remove the file from stage location
git rm --cached file2
#commit to local repo
git commit -m ""
#one time setup after git installation
git config --global user.email "niladrisankarmondal.mondal@gmail.com"
git config --global user.name "NiladriSMondal"