You have now been introduced to the fundamental Git workflow. You learned a lot! Let’s take a moment to generalize:
git initcreates a new Git repository
git statusinspects the contents of the working directory and staging area
git addadds files from the working directory to the staging area
git diffshows the difference between the working directory and the staging area
git commitpermanently stores file changes from the staging area in the repository
git logshows a list of all previous commits
Click Next to complete the lesson!