โ Git & GitHub learning pathGit & GitHub ยท Module 2 of 10
Your first repository
Create a repo, stage and commit changes.
๐ Key ideas
- git init creates a new repository.
- git status shows changed files.
- git add file stages changes; git add . stages all.
- git commit -m "message" saves a snapshot.
- git log shows history.
๐ก Real-life example: Staging is putting items in a box; committing is sealing and labelling the box.
git initCreates a repository
Staging areaChanges prepared for the next commit
CommitSaved snapshot with message
git logShows commit history