Git makes it simple to update a repository. Using the git add command, you can update Git's file "snapshot" after editing a file or files. Use the git commit command to make changes to the repository permanent.
Type the following command to see the modifications you've made to files in the repository since the last commit:
git status
Similarly, type the following command to get a list of modifications that have previously been committed to the repository:
git log