This document provides a summary of common Git commands organized into categories such as repository management, branching and merging, editing history, viewing information, tags, and collaboration. It lists commands for initializing and cloning repositories, adding remote repositories, checking out and switching branches, merging branches, viewing diffs and status, staging and committing changes, reverting and rebasing commits, and pushing changes to remote repositories.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
1K views1 page
Git Command Cheat Sheet Guide
This document provides a summary of common Git commands organized into categories such as repository management, branching and merging, editing history, viewing information, tags, and collaboration. It lists commands for initializing and cloning repositories, adding remote repositories, checking out and switching branches, merging branches, viewing diffs and status, staging and committing changes, reverting and rebasing commits, and pushing changes to remote repositories.
Create Bundle Copy Commit and Apply on Current Branch git push [--dry-run] [repo] [lref:rref] Push and Update Remote Refs and Objects git tag [-a] [-m'msg’] <tag> git log [--oneline] [--graph] [--pretty=] Create a Tag Show Commit Log
git tag [show <tag>] git grep [-I] [-n] [--cached] [-e pattern] [ref] List or Show a Tag Find Patterns Upstream Repository git tag -d <tag> Repository Updated git blame [-Ls,e] <file> git push --tags [repo] Show Who Changed What to a File Delete a Tag Push Tags to Remote Repo git bisect [start|bad|good|reset] Binary Search Through Commits to Find Issues