The HEAD pointer is used by Git to keep track of the current state of the repository.
- [Narrator] In this movie, we'll gain … an understanding of the HEAD Pointer in Git. … Git maintains a reference variable called HEAD. … All capitals, H-E-A-D. … We call this variable a pointer, … because its purpose is to reference, or point to, … a specific commit in the repository. … As we make new commits, the pointer changes, … or moves, to point to a new commit. … The HEAD always points to the tip … of the current branch in our repository. … Now the repository has nothing to do with … the staging index or the working directory. … It's a way of tracking the current position … in the repository. … I think a good metaphor to use for the HEAD, … is the playback and record head on a cassette tape recorder. … As we start recording audio, the tape … moves past the head, and it records onto it. … When we press stop, the place where that … record head is stopped, is the place that … it will start recording again, … if we press record a second time. … Now we can move around, we can move the head …
- 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.