Initializing Git Repository
Explore how to initialize a Git repository by running git init and understand the role of important internal files such as HEAD and config. This lesson helps you establish your first local Git repository and provides foundational knowledge for managing version control.
We'll cover the following...
We'll cover the following...
To initialize a Git repository, run git init from within the root folder of the source that you want to manage.
1 mkdir lgthw_git_basics
2 cd lgthw_git_basics
3 git init
This locally initializes a database in the folder .git. Your repository is entirely stored within this .git folder. To work with this repository, ...