From the course: Programming Foundations: Version Control with Git

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Adding and committing changes

Adding and committing changes

- [Instructor] In the previous exercise, we created a new repository with GitHub Desktop, which also included the first commit, but we didn't see how to make the commit because it was automatically added when the repository was created. So let's explore how to use the git add and commit actions using GitHub Desktop by making changes to the personal-site project. In VS Code, I'll make changes to the project files to have some revisions to work with in GitHub Desktop. You can either follow along or just watch the demonstration. It's up to you. First, I'll rename the styles.css file to main.css. I'm also going to close the terminal panel since I'll be working with GitHub Desktop instead. Then in index.html, I'll make a few updates. I'll start with changing the path to the CSS file to reflect the new file name main.css. Then I'll update the name in the h2 heading. I'll also add a random message at the bottom of the page, and I'll go over the reason for this soon. Then I'm going to save…

Contents