Git: Basic concepts

  • The Git project:
    • on your computer - local repository
    • in a remote location - remote repository
  • Each set of changes to files in the history is a commit
  • When choosing what to commit, files are staged
  • Each commit has a parent commit (except for the first one)
  • The current commit is the HEAD
  • Retrieving commits from the remote repository is pulling
  • Sending commits to the remote repository is pushing

Official Git documentation