0Pricing
Frontend Academy · Lesson

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

  1. git init add commit and status
  2. Branching: branch checkout merge
  3. Remote Repos: push pull clone
  4. Pull Request Workflow on GitHub
← Back to Frontend Academy