In this simple workflow, git init is used to start tracking a project with Git, git add and git commit are used to add and commit two files. One file is then modified, and when git status shows that a tracked file has some changes, git diff is used to preview the changes that would be committed. Finally git commit is used again to commit the new changes, and git diff is used to show the differences between the two committed versions of one of the files, showing that git diff can either compare two commits of a file or compare the current state of a file with some previous commit.

Loading more stuff…

Hmm…it looks like things are taking a while to load. Try again?

Loading videos…