DEV Community

Cover image for Do you Git it now?
Analogy | Absence | Example
Analogy | Absence | Example

Posted on

Do you Git it now?

My mental model for how Git works: watch

  1. User creates a remote repository

  2. User clones the remote repo to their computer

  3. The userโ€™s work is a copy called the working directory

  4. The user accomplishes something they want to commit

  5. The userโ€™s changes are staged for commit in an Index

  6. Upon commit, the changes are made to the Head

  7. Upon push, the Remote branch is updated!

Top comments (0)