What is Version control giving you?
complete history of every change
time travel - go back to any version
parallel work - branches for experiments
Collaboration - merge changes from multiple people
Git vs. Git hub
Git = Version control software, runs on computer, track changes locally (Version hitory of Word)
coud platform hosts your repositiries, enables collaboration (Word in one drive)
Key Concepts: The Git menal model
edit files in your working directory
stage the changes you want to sace (git add)
commit to permanently record them (git commit)
Concept 1: Repository
A repository is a project folder tracked by Git
What’s inside?
your project files
hidden .git folder
complete history of changes
brach information
Creating and cloning a new repository:
Create = $ git innit
Clone = $ git clone <url>
Concept 2: Commit
snapshot of project at a point of time
Each commit contains:
unique ID
message (describing the change)
author and time stamp
snapshot of all files
Concept 3: Branch
is a parallel line of development
work on features without breaking main
experiment safely
multiple people work on different features simultaneously
Essential Git Commands
Pull Requests, collaboration workflow
is a request to merge your changes
Code review - others check before it’ merged
discussion - commment on specific lines
quality control - prevent bugs from reaching main
The git ignore file
some files should never be commited
large datasets
temporary files
credentials
system junk
Last changed15 days ago