From the course: Working with LinkedIn Learning Exercise Files on GitHub

Commit local branch changes - GitHub Tutorial

From the course: Working with LinkedIn Learning Exercise Files on GitHub

Commit local branch changes

- [Instructor] Committing your code changes to the repository is something you do all the time when doing software development. When you're working with training courses and you're working with training examples, it's less likely that you need to do this because you're working with a set of files that were already created by the instructor. So if you do commit, you are adding an additional history to that branch, and if you ever want to see the original text, it takes a little bit more work. But if you do want to commit, it's relatively straight forward. Let's make our change here like that. Save the file. Again, we'll verify that we cannot switch the branches. Okay, so I'll cancel out of this one. I'm not going to undo, like I did in some of the other examples by going here. Instead I'm going to commit, like that. Make my change and then I am going to click here to commit all. And that's it. It's how you commit to any branch. And of course, again, I can switch to the branch I want. You want to switch back. This time what do you expect to see? This time we see that the changes have been persisted to branch 411.

Contents