git init add commit and status
Initialize a repository, stage changes with git add, create commits, and read git status and git log to understand the history.
Why Version Control?
Git tracks every change to your code over time. You can see what changed, when, and why. Mistakes are recoverable. Multiple people can work on the same codebase. Every professional team uses Git.
git init — Start a Repository
Run git init in any folder to initialise a Git repository. Git creates a hidden .git directory that stores the entire project history.
mkdir my-project && cd my-project
git init
# Initialized empty Git repository in ./my-project/.git/All lessons in this course
- git init add commit and status
- Branching: branch checkout merge
- Remote Repos: push pull clone
- Pull Request Workflow on GitHub