Git contd
- Overview

Lets create a new repo
- Git doesnot consider empty folders as change. Git considers only files as changes
-
Every commit will have a unique commit id
-
In Git we have a concept of reference object, We have two reference objects
- branch
- tag
- In Git by default we are working on a branch called as
master - According to our understanding so far, A branch points to the latest commit
- Commands used
git log
git status
git log --oneline
git restore --staged <file path>

- Git internally uses SHA1 hash for everything
- Commit: This is hash of changes, parent commit, author, date time, message
- For git
- file: blob
- folder: tree
