G

Git

Git is a distributed version control system for tracking changes in source code during software development.

What is Git?

Git is a free, open-source distributed version control system that tracks changes to files. It enables multiple developers to collaborate on projects while maintaining a complete history of all modifications.

Git Concepts

  • Repository: Project storage containing all files and history
  • Commit: Snapshot of changes at a point in time
  • Branch: Independent line of development
  • Merge: Combining branches
  • Clone: Creating a local copy of a repository
  • Pull/Push: Synchronizing with remote repositories

Common Git Workflows

Feature branching, Gitflow, trunk-based development, and forking workflow for open source.

Common Misconceptions

  • "Git and GitHub are the same" - Git is the tool, GitHub is a platform
  • "Git is only for code" - Works for any files
  • "Merge conflicts are failures" - Normal part of collaboration