Initializing a Repository (git init)
The 'git init' command creates a new Git repository in the current directory.
Usage
To initialize a new Git repository:
git init
Explanation: This command creates a .git subdirectory in your current working directory, which contains all of Git’s necessary repository files.
Key Takeaways
- 'git init' is used to start tracking files in a new or existing directory.
- It sets up the initial structure for Git to manage versions of your project.