Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Git and GitHub Cheat Sheet

Git and GitHub Cheat Sheet

Back to Developer Tools
Updated 2026-04-27
Next Topic: GitHub Actions Cheat Sheet

Git is a distributed version control system that tracks changes in source code during software development, enabling multiple developers to work on projects simultaneously without conflicts. GitHub is a cloud-based platform built on Git that adds collaboration features like pull requests, issue tracking, merge queues, and continuous integration. Together, they form the backbone of modern software development workflows β€” Git handles the local version control while GitHub facilitates team collaboration, code review, and project management at scale. As of Git 2.54 (2026), the toolset continues to evolve with improved sparse-checkout, background maintenance, and history-editing capabilities.

What This Cheat Sheet Covers

This topic spans 27 focused tables and 169 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Repository Initialization and CloningTable 2: Basic File OperationsTable 3: Viewing Changes and HistoryTable 4: Branching OperationsTable 5: Merging and IntegrationTable 6: Remote Repository ManagementTable 7: Undoing ChangesTable 8: Stashing ChangesTable 9: Tagging and ReleasesTable 10: Configuration and AliasesTable 11: Advanced DebuggingTable 12: Working with Submodules and SubtreesTable 13: Git LFS (Large File Storage)Table 14: WorktreesTable 15: Git HooksTable 16: Patch and Bundle OperationsTable 17: .gitignore PatternsTable 18: GitHub Pull RequestsTable 19: GitHub IssuesTable 20: GitHub ActionsTable 21: GitHub ProjectsTable 22: GitHub Security FeaturesTable 23: GitHub PagesTable 24: GitHub CLI (gh)Table 25: GitHub Packages and ReleasesTable 26: GitHub Collaboration FeaturesTable 27: Branching Strategies

Table 1: Repository Initialization and Cloning

CommandExampleDescription
git init
git init
Initializes a new Git repository in the current directory, creating a .git folder to track changes.
git clone
git clone https://github.com/user/repo.git
Downloads a complete copy of a remote repository including all history, branches, and tags to your local machine.
git clone --depth
git clone --depth 1 https://github.com/user/repo.git
Creates a shallow clone with limited commit history, reducing download size for large repositories.

More in Developer Tools

  • File Formats Cheat Sheet
  • GitHub Actions Cheat Sheet
  • AI-LLM Code Generation Cheat Sheet
  • Docker Desktop for Developers Cheat Sheet
  • Notepad++ Cheat Sheet
  • Sublime Text Cheat Sheet
View all 55 topics in Developer Tools