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 - Git Tutorial
From the course: Programming Foundations: Version Control with Git
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Using Git GUIs1m 10s
-
(Locked)
Setting up GitHub Desktop4m 43s
-
(Locked)
Working with repositories3m 49s
-
(Locked)
Adding and committing changes6m 44s
-
(Locked)
What is Git Branching?1m 26s
-
(Locked)
Working with branches3m 45s
-
(Locked)
Merging a branch2m 39s
-
(Locked)
Challenge: Putting it all together1m 18s
-
(Locked)
Solution: Putting it all together4m 15s
-
(Locked)
-