Ignore Files & Changes to All Files Globally Within Git


show more Ignoring files globally provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Ignoring files globally

We've seen how we can tell Git which files that auto ignore inside of our working directory, and we did that by putting a gitignore file in the root of our working directory and even storing and committing that to our repository. But what if we find ourselves ignoring the same files over and over and all of our different projects in each of our different Git repositories? Or as we saw in the last movie some of the files that we want to ignore are operating specific files, we want to ignore them all the time, because they are just generally the kind of thing that we don't want to track.

Well, to do this, we're going to configure Git to globally ignore some files. That means if we ignore those files in all repositories, not just in any one specific repository, and the settings for this global ignore are not going to be inside the repository, they're going to live outside of it, right? It's part of our git configuration, not our project configuration, but our git configuration. So ...

Ignoring files globally
Video duration: 4m 49s 6h 25m Beginner

Viewers:

Ignoring files globally provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...