-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLab6
More file actions
40 lines (32 loc) · 1.04 KB
/
Lab6
File metadata and controls
40 lines (32 loc) · 1.04 KB
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
# Git-1
***Note:*** This document is my lecture note about Git-1.
## Version Control and Collaboration
-----
Basic solution: Making copies
if you make copies, you can use previous files.
-> Git is Version Control
#### Changes vs Snapshots
If file A changed
1. Change: Use ΔA
2. Snapshot: Use A1
#### Local, Centralized, Distributed
1. Local: individual computer
2. Centralized: Cooperation -> Many Version Control use it.
3. Distributed: Cooperation -> if you lost files or files broke, you can get files.
---
#### Three Staes in Git
1. Modified:
2. Staged:
3. Comitted: comit == snapshot
---
#### Git config: First-time setup
1. System level: --system opthion
2. Global (user) level: --global option
3. Local level: --local opthion
---
1. $ git init : Initializing a Repository in an Existing Directory
2. $ git status : Checking Repository Status
3. $ git add [file_name] : Adding a new file to be staged(tracked)
4. $ git add. : Adding all files to be staged(tracked)
5. $ git rm --cached [file_name] : Unstaging a file
6. $ .gitignore : ignoring a file