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

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