gitignore Rules (.gitignore)
- The file which are going to be mention in the .gitignore file must be in the specific pattern.
- The .gitignore file will be read by the git from top to bottom approach.
- .gitignore file will supports negation which uses ! as prefix.
- *.log know it will ignores all the file with the .log.
- build/ it will ignores all the build directory.
- You can comment the lines in the .gitignore file by using the (#).
What is Git-Ignore and How to Use it?
There are various types of files we might want the git to ignore before committing, for example, the files that are to do with our user settings or any utility setting, private files like passwords and API keys. These files are not of any use to anyone else and we do not want to clutter our git. We can do this with the help of “