1- Updates files in the working tree to match the version in the index or the specified tree.
$ git checkout
2- Adds the files in the local repository and stages them for commit.
$ git add .
3- Commits the tracked changes and prepares them to be pushed to a remote repository.
$ git commit -m “add your commit”
4- Pushes the changes in your local repository up to the remote repository
$ git push origin master