From the course: Source Code Control in .NET with Git Using SourceTree

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Make changes and commit, the master branch

Make changes and commit, the master branch

From the course: Source Code Control in .NET with Git Using SourceTree

Start my 1-month free trial

Make changes and commit, the master branch

- [Narrator] Let's make a change to HelloWorld and see how that impacts with the Git repository. We'll come into our HelloWorld program and just make a simple change, let's say, console right line, and we'll say that, this is line two. Just enough to be able to see that there is some change. We'll save all the files. File, save all. And now we're going to return to SourceTree. Notice that we now have an entry called, uncommitted changes. Let's click on that, and that shows you which files are not yet committed. In the right hand pane, you can see where the change is, that indicates what has been added to HelloWorld, and as things were removed, we would see that as well. Our next step is to put these changes into the local repository, and that's called a commit. So we'll click on commit, and that's going to open up the messages window. There are a lot of different opinions about how to do good messages. But there's some general agreement on the basic guidelines. And one is to use the…

Contents