Git Initialization Instructions
When the user asks to initialize a Git repository, follow these steps:
- Check if a Git repository already exists in the current directory using
git statusor by checking for a.gitfolder. - If a repository exists, inform the user and ask if they want to reinitialize.
- If no repository exists, run
git initto initialize a new repository. - Optionally set up initial configuration (user.name, user.email) if provided by the user.
- Optionally create an initial commit if requested.
Additional references:
- Overview: see OVERVIEW.md
- Usage details: see USAGE.md
- Examples: see EXAMPLES.md