Overview
A clean setup sequence is:
- Open a terminal.
- Verify Git with git --version.
- Navigate to the intended project directory.
- Either run git init or clone an existing repository with git clone <repository-url>.
- Confirm the repository state with git status.
- When using git init, verify that the .git directory exists if you need to confirm initialization.
After cloning, inspect the downloaded files and run git status. The repository should already know its committed files and branch state because its history was included in the clone.