forked from raushan8586/devops-2023-september
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7. Version Control
29 lines (20 loc) · 845 Bytes
/
7. Version Control
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
Version control
doc1.docx
Git --> Version control system
GitHUb --> Source Code Management / Online Code Repo --> Remote Repo
Why VCS?
1. To track changes --> who commited the changes? what was changed? --> commit ID
2. To retrieve files from accidental deletes
Types of VCS
1. Centralized VCS --> svn (sub-version)
Drawbacks:
a. Multiple developers cann't work on the same files/project at the same time
b. To make changes, developers need to be connected to the internet
2. Distributed VCS --> Git
Local Repo
=============================================================================================
ls -la --> list the hideen files/folder --> To check whether the folder is being tracked by git or not
ls -l --> WD
git ls-files --> SA/LR
git status --> To confirm SA or LR
SA (Staging Area) is a temporary Location