From the course: Coding Exercises: Git
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Adding to a previous commit - Git Tutorial
From the course: Coding Exercises: Git
Adding to a previous commit
(videogame whirling) (coin dinging) (videogame chiming) (videogame whirling) - [Instructor] Sometimes you do a commit, but you immediately realize that you need to change one more thing. Instead of doing a new commit with a different message, how do you add something to a previous commit? I'll give you a couple of seconds to think about how you would do something like that. (videogame whirling) (8-bit music) (videogame chiming) (videogame whirling) Now, again, this one's pretty easy, and it's called amending your commit. I'm updating the version of this project to Bootstrap. So I'm going to start by going to the package.json file and bumping up my version to 2.0.0. So I'll save this, and I'm going to call this. So I'm going to add this, and I'm going to commit this with a message of "Bumping up Bootstrap Version." Now, what I need to do next would be add the Bootstrap CSS and JavaScript. Already downloaded them…
Contents
-
-
-
Cloning with limited history1m 33s
-
(Locked)
Adding to a previous commit4m 36s
-
(Locked)
Identifying your changes2m 26s
-
(Locked)
Managing multiple remotes2m 42s
-
(Locked)
Cleaner logs3m 25s
-
(Locked)
Using Git to hunt down bugs5m 7s
-
(Locked)
Working on multiple branches3m 19s
-
(Locked)
Creating a .zip file2m 57s
-
(Locked)
Getting rid of quick fixes4m 48s
-
(Locked)
Marking items without branching4m 8s
-
(Locked)
Removing untracked files2m 44s
-
(Locked)
Renaming branches2m 31s
-
(Locked)
Remove local, keep master3m 15s
-
(Locked)
Picking specific commits4m 30s
-
(Locked)
Creating a safety net for fixes2m 51s
-