1 | initial version |
To avoid including files that have already been committed to a Git repository, you can use the .gitignore file. The .gitignore file specifies files and directories that should be ignored by Git, even if they have already been added to the repository.
To use the .gitignore file, follow these steps:
*.log
Once you have created the .gitignore file and added the appropriate files and directories to it, Git will ignore those files and directories when you commit changes to the repository.