What is the purpose of a `.gitignore` file in a Git repository?
The `.gitignore` file is used to store all your Git repository settings and configurations.
Thatâ€™s incorrect. The `.gitignore` file is used to specify files and directories that should not be tracked by Git, not for repository settings.
Can you explain what `.gitconfig` is and how it differs from `.gitignore`?