The .gitignore files describe the names or patterns of files and directories that Git should ignore and not attempt to track.
- [Instructor] As we've seen in previous chapters, … Git does a good job of noticing … when new files are added to the working directory … or when files that are in the repository are changed … in our working directory, … but that's not always desirable. … What if we don't want to track those changes? … What if it's a temporary file that we don't care about … or if it's a log file that's constantly changing? … Instead of having Git always bother us about these files, … we need a way to just tell Git to ignore them. … If you create a file … and put it in the root of your repository called .gitignore, … then Git will read this file … and use its rules when looking at the other files … to decide what should be tracked and what should not. … Changes made to ignored files will be ignored by Git. … So we need to learn a little bit about the kind of rules … that we can put in these files. … The simplest thing is just to put a simple name of the file … and that file would get ignored, … but we can also use pattern matching, …
- 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.