My mental model for how Git works: watch
User creates a remote repository
User clones the remote repo to their computer
The user’s work is a copy called the working directory
The user accomplishes something they want to commit
The user’s changes are staged for commit in an Index
Upon commit, the changes are made to the Head
Upon push, the Remote branch is updated!
Top comments (0)