Now that you are familiar with the basic commands of Git, we are diving deeper into the other features it has. You will discover in this chapter the features that I promised you in Chapter 1.
Ignoring files
Not everything in the working directory should be tracked by Git. There are certain files (configs, passwords, bad code) that are generally left untracked by authors or developers.
Those files (or directories) are listed in a simple file called “.gitignore.” Notice the period before “gitignore”; it’s important. To ignore files, create a file named .gitignore and list the files or folders ...