Skip to main content

Git Documentation 📚

Table of Contents

  1. Getting Started
  2. Configuration
  3. Creating Repositories
  4. Basic Commands
  5. Branching
  6. Merging and Rebasing
  7. Stashing
  8. Remote Repositories
  9. Tags
  10. Undoing Changes
  11. Miscellaneous
  12. Help

Getting Started 🚀

Install Git đŸ› ī¸

  • Windows: Download here
  • macOS: Install via Homebrew
  • Linux:

Verify Installation ✅

Configuration đŸ› ī¸

Set User Information 👤

Check Configuration 📋

Creating Repositories 📁

Initialize a Repository 🆕

Clone a Repository đŸ“Ĩ

Basic Commands 📝

Check Status 📊

Add Changes ➕

Commit Changes 💾

View Commit History 📜

View Changes (Diff) 🔍

Branching đŸŒŋ

Create a New Branch 🆕

List Branches 📃

Switch Branches 🔀

Create and Switch Branch 🌱

Merging and Rebasing 🔄

Merge Branches 🔀

Rebase Branches â†Šī¸

Stashing đŸ’ŧ

Stash Changes 👜

Apply Stashed Changes 🔙

List Stashes 📃

Remote Repositories 🌍

Add Remote Repository ➕

List Remote Repositories 🌐

Push to Remote Repository 📤

Pull from Remote Repository đŸ“Ĩ

Tags đŸˇī¸

Create a Tag đŸˇī¸

List Tags 📋

Push Tags to Remote 📤

Undoing Changes â†Šī¸

Unstage Changes ❌

Revert Changes to a File 🔄

Amend Last Commit âœī¸

Miscellaneous 🌐

Show Commit Graph 🌲

Show Commit History of a File 📝

Alias Commands 📝

Help 🆘

General Help 📘

Command-specific Help 📚


This Git documentation should serve as a quick reference guide for essential Git commands and their use cases. Feel free to add or customize it according to your needs. Happy coding! 👩‍đŸ’ģ👨‍đŸ’ģ