Git is a system for distributed version control designed to unlock the public or private development of software.

Local copies can be cloned from the main online repositories.

As a developer, you’re free to edit your own local copy as much as you want.

Article image

Once youre happy with your changes though, you may want to push your changes to the online repository.

you’re free to add files to the staging area with the git add command.

you’re free to do this with the git status command.

Article image

The git status command will show which files have changes staged for commit and which do not.

This means a file can show up in both the staged changes and un-staged changes lists.

To do so, throw in git commit -m [your commit message].

Article image

A git commit is used to group all of the changes together and to include a commit message.

Once youve committed your changes, key in git push to push your changes to the online repository.

Add a short explanation of what a commit does, then push it to the remote repository.