The .gitignore file is used to specify intentionally untracked files that Git should ignore. When you're working on a project, there are often files or directories that you don't want to include in your version control system. These could be temporary files, build artifacts, or sensitive information like passwords.
you create a .gitignore file in the root of your repository, in which you re going to specify files you don t want to be tracked, and you re good to go
This tells Git to ignore any files ending with .exe or .dll, directories named .vscode or .idea, as well as directories named logs or temp.
Using .gitignore helps ensure that your repository remains tidy, reduces clutter, and avoids accidentally committing files that shouldn't be part of your project's history.