Version-Control-Git-Teaching-Notes

7.3 Push vs. Commit

In this lesson, we introduced the git push command. How is git push different from git commit?

Solution

When we push changes, we’re interacting with a remote repository to update it with the changes we’ve made locally (often this corresponds to sharing the changes we’ve made with others). Commit only updates your local repository.

Episode 7 Exercise 4