Use Git to remove one or more untracked files from a repository.
- [Instructor] In this movie, … I want to talk about another type of action that we can undo … and that is to remove untracked files from our repository. … Sometimes files end up getting added to the repository … that we don't want there. … They might be compiled code. … They might be log files. … Maybe it's just a bunch of extraneous stuff … that somehow ended up getting added … as we were working with our project. … We could go through and remove those files … by hand one by one, … but Git also allows us to just simply remove them … all at once. … It's a technique that can come in handy sometimes. … Let's begin by adding some junk files to our project. … So I'll just add a new file. … I'm going to call this one junk.txt … and let's say it is Junk inside of it. … Actually, let me change the name here. … Let me rename the file to be junk1 … just so that we can have a couple of these. … Let's make another new file. … This one will be called junk2.txt. … It'll also just say junk inside of it. …
- 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.