Intermediate Git
George Boorman
Curriculum Manager, DataCamp
Branch = an individual version of a repo
Git uses branches to systematically track multiple versions of files
main
git branch
main
* ai-assistant
*
= current branchgit switch main
Switched to branch 'main'
speed-test
git branch speed-test
speed-test
branchgit switch speed-test
Switched to branch 'speed-test'
speed-test
and switch to itgit switch -c speed-test
Switched to a new branch 'speed-test'
Creating a new branch = "branching off"
Creating speed-test
from main
= "branching off main
"
Intermediate Git