Learn a helpful shortcut to commit changes directly to the repository without staging them first.
- [Instructor] In the previous movie, … we made some edits to our project … but we have not committed them yet. … In this movie I want to show you a shortcut … to allow you to stage and commit those changes. … We've already talked about how … you have three different trees. … Repository, staging, and your working directory. … And normally the process is that … you add a file to staging … and then once it's staged there … and you're happy with the results, … then you commit those to the repository. … Now if you already know that you want … to commit everything to the repository, … then you can skip the staging step. … That's what this shortcut does. … Instead of using git add and then git commit, … you just use git commit with the -a option after it. … Git commit -a is the same thing as git commit --all. … We're telling it commit all the files. … Now be careful about that … because there's two important caveats that go with it. … The first is that it stages and commits … all changes to tracked files, …
- 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.