Table of contents
.gitignore
To create a file inside our folder we use the touch command.
Now if we want to put this view.txt file in .gitignore we first generate a .gitignore file
Now if we check the git status of the files we get,
So these two files which we created are not tracked yet.
If we want to put this view.txt in .gitignore we simply type the name of the folder in the .gitignore file and save it.
Now check the git status on bash.
This shows only .gitignorefile is not tracked.
So basically adding view.txt in .gitignore ignores the file.
Similarly, if we want to add directories to .gitignore we can,