Make edits to the most recent commit in the repository.
- [Instructor] In this movie, we'll talk about … amending commits that are already in the repository. … You'll remember when we talked about the architecture of Git … we talked about how those SHA values are generated … for each one of our snapshots. … Every time we take a commit, Git takes … all of the code changes that we're making, … as well as the metadata about the commit, … runs it through an algorithm, … and comes up with that SHA value, … and when it goes to make the next commit, … it uses the previous SHA value, the parent value, … in the next commit, so when we generate a snapshot for B, … we come up with a SHA value 38e73 and so on. … Then when snapshot C needs to have a commit made, … all of its code changes, all of its metadata … including that SHA value, get used … to generate its value. … This is an important aspect of the way that … Git maintains data integrity, … and makes sure that you can't change the history of commits. … That has important implications for amending commits …
- 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.