git init : Initializing a Repository

  • Initializes a new Git repository
  • Should be run only once per project

What it does:

  • Creates the hidden .git folder
  • The .git folder:

    • Stores the complete history of the project
    • Tracks changes to all files and subfolders
    • Contains Git configuration and metadata

Before git init alt text

After git init

alt text