893 B
893 B
Pro Git book notes - getting started
- Centralized and distributed version controls
- Three states of tracked files
- Set default for initial branch
- Version control has a simple database that kept all the changes to files under revision control
-
Local computer
-
Checkout
- file
-
Version database
- Version 3
- Version 2
- Version 1
-
Centralized and distributed version controls
-
Centralized version control systems
- Server
- Clients
-
Distributed version control systems
- Clients mirror the repository
Three states of tracked files
- Modified
- Staged
- Commited
Set default for initial branch
Changing the name from "master" to "main"
git config --global init.defaultbranch main