GIT Commit

So once we have our files added that we want to commit the changes from (see git add) we can do git commit.

Let’s look at the scenario were we are adding a web page to a repo. We have already done the git add operations. So we can do these two commands to complete the commit:

git status git commit -m "A comment about the commit"

Here’s what this looks like:

So this will get your changes committed in your local GIT repository. But the changes won’t be shared with your team yet. How do you do that?

For that you’ll need to do a git push but probably need to do a git pull first.

Related pages