Configure Git to ignore certain files globally, not just in the current project.
- [Instructor] We've been talking about ways to ignore … files in Git. … I want to talk about how you can globally ignore files. … So far we've been looking at how we can ignore files … inside our project. … What if we want to ignore the files in all repositories? … So if we have four or five different projects we always … want to ignore certain files in all of those projects. … To do this we need to set the ignore file globally. … So the settings are not tracked in a single repository, … they become user specific instead of repository specific. … The way we do that is by using the Git config command … that we learned earlier with the global setting … and then you set a value for core.excludesfile. … You're telling it what file it should use for exclusions. … That file can be called absolutely anything you want. … For example you could call it gitignore_global … and you can make it a dot file so it doesn't normally … show up. … So that file can live anywhere you want but a good place …
- Exploring the history of version control
- Installing Git on Mac, Windows, and Linux
- Initializing a repository
- Writing useful commit messages
- The Git three-tree architecture
- Tracking when files are added, edited, deleted, or moved
- Viewing change sets and comparing versions
- Undoing changes and retrieving previous versions
- Ignoring changes to select files
Skill Level Beginner
1. What Is Git?
2. Install Git
3. Getting Started
4. Git Concepts and Architecture
5. Make Changes to Files
6. Use Git with a Real Project
7. Undo Changes
8. Ignore Files
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.