vcs basics and types vcs and git
basics of version control system
- version control system is system that records changes to files over time so you recall specific version later
benefits:
- history – see how you project evolved.
- rollback – return to earlier state (can remove latest changes till you required )
- collaboartion: many people can work on same project or same application
- branching : working features isolated
- accountability: know what changes ? when done ? why done
- backup: history is stored safely.
Types of version control system
- local – versions stores in one machine Ex: RCS – revison version control system
- Centeralized (CVCS) – one centeral server Ex: subversions
- Distributed – every user having full copy of histoiry
Ex: Git
Git
- git is a free opensource , Distributed version control system
Key characteristics:
- Distributed: Every clone getting full repo download
- Fast: Most operations are in local
- snapshort-based : store every changes in snapshort
- integrity: everything is checked with sha id (sha256)
- cheap branching: branching are just lightweight pointer
- Non-linear development: parallel thousands of branches are suppourted.
Installtion git
Run powershell as admin and run this cmd winget install --id Git.Git -e --source winget
TasK
- install git and create directory/folder git_repo and run below cmd
git init .
ls .git
