{"id":1416,"date":"2025-08-01T10:42:14","date_gmt":"2025-08-01T10:42:14","guid":{"rendered":"https:\/\/www.xopsschool.com\/tutorials\/?p=1416"},"modified":"2025-08-01T13:52:15","modified_gmt":"2025-08-01T13:52:15","slug":"git-command-reference-table-with-description-and-examples","status":"publish","type":"post","link":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/","title":{"rendered":"GIT Command Reference Table with Description and Examples"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">1. Git Configuration<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git config --global user.name \"Your Name\"<\/code><\/td><td>Set username globally<\/td><td><code>git config --global user.name \"Pritesh Thamke\"<\/code><\/td><\/tr><tr><td><code>git config --global user.email \"you@example.com\"<\/code><\/td><td>Set email globally<\/td><td><code>git config --global user.email \"pritesh@example.com\"<\/code><\/td><\/tr><tr><td><code>git config --list<\/code><\/td><td>View all config settings<\/td><td><code>git config --list<\/code><\/td><\/tr><tr><td><code>git config --global core.editor nano<\/code><\/td><td>Set default editor<\/td><td><code>git config --global core.editor nano<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git init<\/code><\/td><td>Initializes a new Git repository in the current directory.<\/td><td><code>git init<\/code> Creates a <code>.git<\/code> folder in the current directory to start version control.<\/td><\/tr><tr><td><code>git config --global user.name \"&lt;name&gt;\"<\/code><\/td><td>Sets the global username for commits.<\/td><td><code>git config --global user.name \"Pritesh thamke\"<\/code> Configures the username as &#8220;John Doe&#8221; for all repositories.<\/td><\/tr><tr><td><code>git config --global user.email \"&lt;email&gt;\"<\/code><\/td><td>Sets the global email for commits.<\/td><td><code>git config --global user.email \"pritesh.cotocus@gmail.com\"<\/code> Sets the email for commit authorship.<\/td><\/tr><tr><td><code>git config --list<\/code><\/td><td>Lists all Git configuration settings.<\/td><td><code>git config --list<\/code> Displays all global and local config settings, e.g., user.name, user.email.<\/td><\/tr><tr><td><code>git config --global core.editor \"&lt;editor&gt;\"<\/code><\/td><td>Sets the default text editor for Git (e.g., for commit messages).<\/td><td><code>git config --global core.editor \"vim\"<\/code> Sets Vim as the default editor.<\/td><\/tr><tr><td><code>git config --global color.ui auto<\/code><\/td><td>Enables colored output for Git commands.<\/td><td><code>git config --global color.ui auto<\/code> Makes Git output (like status, diff) colorful.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. Git Repository Initialization<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git init<\/code><\/td><td>Initialize a new Git repo<\/td><td><code>git init<\/code><\/td><\/tr><tr><td><code>git clone &lt;url&gt;<\/code><\/td><td>Clone remote repo<\/td><td><code>git clone https:\/\/github.com\/user\/repo.git<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git clone &lt;repo-url&gt;<\/code><\/td><td>Clones a remote repository to your local machine.<\/td><td><code>git clone https:\/\/github.com\/user\/repo.git<\/code> Downloads the repository to a local folder named <code>repo<\/code>.<\/td><\/tr><tr><td><code>git remote add &lt;name&gt; &lt;url&gt;<\/code><\/td><td>Adds a remote repository to your local repository.<\/td><td><code>git remote add origin https:\/\/github.com\/user\/repo.git<\/code> Links the local repo to a remote named &#8220;origin&#8221;.<\/td><\/tr><tr><td><code>git remote -v<\/code><\/td><td>Lists all remote repositories and their URLs.<\/td><td><code>git remote -v<\/code> Shows the fetch and push URLs for remotes like &#8220;origin&#8221;.<\/td><\/tr><tr><td><code>git remote remove &lt;name&gt;<\/code><\/td><td>Removes a remote repository from the local config.<\/td><td><code>git remote remove origin<\/code> Deletes the &#8220;origin&#8221; remote from the repository.<\/td><\/tr><tr><td><code>git remote rename &lt;old-name&gt; &lt;new-name&gt;<\/code><\/td><td>Renames a remote repository.<\/td><td><code>git remote rename origin upstream<\/code> Renames the &#8220;origin&#8221; remote to &#8220;upstream&#8221;.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. Staging and Snapshot<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git status<\/code><\/td><td>Show status of files<\/td><td><code>git status<\/code><\/td><\/tr><tr><td><code>git add &lt;file&gt;<\/code><\/td><td>Add file to staging<\/td><td><code>git add index.html<\/code><\/td><\/tr><tr><td><code>git add .<\/code><\/td><td>Add all files to staging<\/td><td><code>git add .<\/code><\/td><\/tr><tr><td><code>git commit -m \"message\"<\/code><\/td><td>Commit staged changes<\/td><td><code>git commit -m \"Initial commit\"<\/code><\/td><\/tr><tr><td><code>git commit -a -m \"message\"<\/code><\/td><td>Commit all tracked files<\/td><td><code>git commit -a -m \"Updated config\"<\/code><\/td><\/tr><tr><td><code>git restore &lt;file&gt;<\/code><\/td><td>Discard changes to file<\/td><td><code>git restore index.html<\/code><\/td><\/tr><tr><td><code>git reset &lt;file&gt;<\/code><\/td><td>Unstage file<\/td><td><code>git reset style.css<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git add &lt;file&gt;<\/code><\/td><td>Adds a specific file to the staging area.<\/td><td><code>git add index.html<\/code> Stages <code>index.html<\/code> for the next commit.<\/td><\/tr><tr><td><code>git add .<\/code><\/td><td>Adds all modified and new files in the current directory to the staging area.<\/td><td><code>git add .<\/code> Stages all changes in the working directory.<\/td><\/tr><tr><td><code>git add -A<\/code><\/td><td>Stages all changes (including deletions) in the entire repository.<\/td><td><code>git add -A<\/code> Stages all modified, new, and deleted files.<\/td><\/tr><tr><td><code>git commit -m \"&lt;message&gt;\"<\/code><\/td><td>Commits staged changes with a message.<\/td><td><code>git commit -m \"Add new feature\"<\/code> Creates a commit with the message &#8220;Add new feature&#8221;.<\/td><\/tr><tr><td><code>git commit -a -m \"&lt;message&gt;\"<\/code><\/td><td>Stages and commits all modified tracked files in one step.<\/td><td><code>git commit -a -m \"Update styles\"<\/code> Stages and commits changes to tracked files.<\/td><\/tr><tr><td><code>git commit --amend<\/code><\/td><td>Modifies the most recent commit (e.g., to change the message or add files).<\/td><td><code>git commit --amend -m \"Updated message\"<\/code> Updates the last commit\u2019s message.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. Branching and Merging<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git branch<\/code><\/td><td>List branches<\/td><td><code>git branch<\/code><\/td><\/tr><tr><td><code>git branch &lt;name&gt;<\/code><\/td><td>Create branch<\/td><td><code>git branch feature-x<\/code><\/td><\/tr><tr><td><code>git checkout &lt;name&gt;<\/code><\/td><td>Switch branch<\/td><td><code>git checkout feature-x<\/code><\/td><\/tr><tr><td><code>git switch &lt;name&gt;<\/code><\/td><td>Switch branch (modern way)<\/td><td><code>git switch main<\/code><\/td><\/tr><tr><td><code>git merge &lt;branch&gt;<\/code><\/td><td>Merge branch into current<\/td><td><code>git merge feature-x<\/code><\/td><\/tr><tr><td><code>git branch -d &lt;name&gt;<\/code><\/td><td>Delete branch<\/td><td><code>git branch -d feature-x<\/code><\/td><\/tr><tr><td><code>git checkout -b &lt;name&gt;<\/code><\/td><td>Create and switch<\/td><td><code>git checkout -b bugfix<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git branch<\/code><\/td><td>Lists all branches in the repository (current branch marked with <code>*<\/code>).<\/td><td><code>git branch<\/code> Shows branches like <code>main<\/code>, <code>feature-x<\/code>.<\/td><\/tr><tr><td><code>git branch &lt;branch-name&gt;<\/code><\/td><td>Creates a new branch.<\/td><td><code>git branch feature-x<\/code> Creates a branch named <code>feature-x<\/code>.<\/td><\/tr><tr><td><code>git checkout &lt;branch-name&gt;<\/code><\/td><td>Switches to the specified branch.<\/td><td><code>git checkout feature-x<\/code> Switches to the <code>feature-x<\/code> branch.<\/td><\/tr><tr><td><code>git checkout -b &lt;branch-name&gt;<\/code><\/td><td>Creates and switches to a new branch in one step.<\/td><td><code>git checkout -b feature-x<\/code> Creates and switches to <code>feature-x<\/code>.<\/td><\/tr><tr><td><code>git branch -d &lt;branch-name&gt;<\/code><\/td><td>Deletes a branch (only if merged).<\/td><td><code>git branch -d feature-x<\/code> Deletes the <code>feature-x<\/code> branch if merged.<\/td><\/tr><tr><td><code>git branch -D &lt;branch-name&gt;<\/code><\/td><td>Force deletes a branch (even if unmerged).<\/td><td><code>git branch -D feature-x<\/code> Deletes <code>feature-x<\/code> regardless of merge status.<\/td><\/tr><tr><td><code>git branch -m &lt;new-name&gt;<\/code><\/td><td>Renames the current branch.<\/td><td><code>git branch -m new-feature<\/code> Renames the current branch to <code>new-feature<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git merge &lt;branch-name&gt;<\/code><\/td><td>Merges the specified branch into the current branch.<\/td><td><code>git merge feature-x<\/code> Merges <code>feature-x<\/code> into the current branch (e.g., <code>main<\/code>).<\/td><\/tr><tr><td><code>git merge --abort<\/code><\/td><td>Aborts a merge in progress in case of conflicts.<\/td><td><code>git merge --abort<\/code> Cancels a conflicted merge and restores the pre-merge state.<\/td><\/tr><tr><td><code>git rebase &lt;branch-name&gt;<\/code><\/td><td>Reapplies commits from the current branch onto another branch.<\/td><td><code>git rebase main<\/code> Reapplies current branch\u2019s commits on top of <code>main<\/code>.<\/td><\/tr><tr><td><code>git rebase -i &lt;commit-hash&gt;<\/code><\/td><td>Interactively rebase commits (e.g., squash, reorder).<\/td><td><code>git rebase -i HEAD~3<\/code> Interactively rebases the last 3 commits.<\/td><\/tr><tr><td><code>git rebase --continue<\/code><\/td><td>Continues a rebase after resolving conflicts.<\/td><td><code>git rebase --continue<\/code> Proceeds with rebase after fixing conflicts.<\/td><\/tr><tr><td><code>git rebase --abort<\/code><\/td><td>Aborts a rebase in progress.<\/td><td><code>git rebase --abort<\/code> Cancels a rebase and restores the original state.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. Remote Repositories<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git remote -v<\/code><\/td><td>Show remotes<\/td><td><code>git remote -v<\/code><\/td><\/tr><tr><td><code>git remote add origin &lt;url&gt;<\/code><\/td><td>Add a remote repo<\/td><td><code>git remote add origin https:\/\/github.com\/user\/repo.git<\/code><\/td><\/tr><tr><td><code>git push -u origin main<\/code><\/td><td>Push first time<\/td><td><code>git push -u origin main<\/code><\/td><\/tr><tr><td><code>git push<\/code><\/td><td>Push latest commits<\/td><td><code>git push<\/code><\/td><\/tr><tr><td><code>git pull<\/code><\/td><td>Fetch + merge from remote<\/td><td><code>git pull origin main<\/code><\/td><\/tr><tr><td><code>git fetch<\/code><\/td><td>Download changes (no merge)<\/td><td><code>git fetch origin<\/code><\/td><\/tr><tr><td><code>git remote remove origin<\/code><\/td><td>Remove a remote<\/td><td><code>git remote remove origin<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git push<\/code><\/td><td>Pushes local commits to the default remote branch.<\/td><td><code>git push<\/code> Pushes commits from the current branch to its remote counterpart.<\/td><\/tr><tr><td><code>git push origin &lt;branch-name&gt;<\/code><\/td><td>Pushes commits to a specific remote branch.<\/td><td><code>git push origin feature-x<\/code> Pushes <code>feature-x<\/code> to the remote <code>origin<\/code>.<\/td><\/tr><tr><td><code>git push --force<\/code><\/td><td>Force pushes commits, overwriting remote history (use cautiously).<\/td><td><code>git push --force<\/code> Overwrites the remote branch with local changes.<\/td><\/tr><tr><td><code>git push --set-upstream origin &lt;branch-name&gt;<\/code><\/td><td>Pushes a branch and sets it to track the remote branch.<\/td><td><code>git push --set-upstream origin feature-x<\/code> Pushes and tracks <code>feature-x<\/code> on <code>origin<\/code>.<\/td><\/tr><tr><td><code>git pull<\/code><\/td><td>Fetches and merges changes from the remote branch.<\/td><td><code>git pull<\/code> Pulls updates from the tracked remote branch.<\/td><\/tr><tr><td><code>git pull origin &lt;branch-name&gt;<\/code><\/td><td>Pulls changes from a specific remote branch.<\/td><td><code>git pull origin main<\/code> Pulls updates from <code>main<\/code> on <code>origin<\/code>.<\/td><\/tr><tr><td><code>git fetch<\/code><\/td><td>Downloads objects and refs from the remote without merging.<\/td><td><code>git fetch<\/code> Fetches updates from all remotes without merging.<\/td><\/tr><tr><td><code>git fetch origin &lt;branch-name&gt;<\/code><\/td><td>Fetches a specific branch from the remote.<\/td><td><code>git fetch origin main<\/code> Fetches <code>main<\/code> from <code>origin<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">6. Stashing (Temporary Save)<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git stash<\/code><\/td><td>Save changes temporarily<\/td><td><code>git stash<\/code><\/td><\/tr><tr><td><code>git stash list<\/code><\/td><td>List all stashes<\/td><td><code>git stash list<\/code><\/td><\/tr><tr><td><code>git stash pop<\/code><\/td><td>Apply and remove last stash<\/td><td><code>git stash pop<\/code><\/td><\/tr><tr><td><code>git stash apply<\/code><\/td><td>Apply last stash (keep it)<\/td><td><code>git stash apply<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git stash<\/code><\/td><td>Saves modified and staged changes to a stack and resets the working directory.<\/td><td><code>git stash<\/code> Stashes current changes and cleans the working directory.<\/td><\/tr><tr><td><code>git stash push -m \"&lt;message&gt;\"<\/code><\/td><td>Stashes changes with a custom message.<\/td><td><code>git stash push -m \"WIP feature\"<\/code> Stashes changes with the message &#8220;WIP feature&#8221;.<\/td><\/tr><tr><td><code>git stash list<\/code><\/td><td>Lists all stashed changes.<\/td><td><code>git stash list<\/code> Shows all stashes, e.g., <code>stash@{0}: WIP feature<\/code>.<\/td><\/tr><tr><td><code>git stash apply<\/code><\/td><td>Applies the most recent stash without removing it.<\/td><td><code>git stash apply<\/code> Reapplies the latest stash to the working directory.<\/td><\/tr><tr><td><code>git stash apply stash@{n}<\/code><\/td><td>Applies a specific stash by index.<\/td><td><code>git stash apply stash@{1}<\/code> Reapplies the stash at index 1.<\/td><\/tr><tr><td><code>git stash pop<\/code><\/td><td>Applies the most recent stash and removes it from the stack.<\/td><td><code>git stash pop<\/code> Applies and deletes the latest stash.<\/td><\/tr><tr><td><code>git stash drop stash@{n}<\/code><\/td><td>Removes a specific stash from the stack.<\/td><td><code>git stash drop stash@{0}<\/code> Deletes the stash at index 0.<\/td><\/tr><tr><td><code>git stash clear<\/code><\/td><td>Removes all stashes from the stack.<\/td><td><code>git stash clear<\/code> Deletes all stashed changes.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">7. Logs and History<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git log<\/code><\/td><td>Show commit history<\/td><td><code>git log<\/code><\/td><\/tr><tr><td><code>git log --oneline<\/code><\/td><td>One-line summary<\/td><td><code>git log --oneline<\/code><\/td><\/tr><tr><td><code>git show &lt;commit&gt;<\/code><\/td><td>Show commit details<\/td><td><code>git show f3e1a90<\/code><\/td><\/tr><tr><td><code>git blame &lt;file&gt;<\/code><\/td><td>Show who changed each line<\/td><td><code>git blame app.py<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git status<\/code><\/td><td>Shows the current state of the working directory and staging area.<\/td><td><code>git status<\/code> Displays modified, staged, and untracked files.<\/td><\/tr><tr><td><code>git log<\/code><\/td><td>Shows the commit history of the current branch.<\/td><td><code>git log<\/code> Lists all commits with their details (hash, author, message).<\/td><\/tr><tr><td><code>git log --oneline<\/code><\/td><td>Displays commit history in a compact, one-line format.<\/td><td><code>git log --oneline<\/code> Shows each commit as a single line with hash and message.<\/td><\/tr><tr><td><code>git log --graph<\/code><\/td><td>Shows a graphical representation of the commit history.<\/td><td><code>git log --graph<\/code> Displays branch and merge history visually.<\/td><\/tr><tr><td><code>git log --author=\"&lt;name&gt;\"<\/code><\/td><td>Filters commits by author.<\/td><td><code>git log --author=\"John\"<\/code> Shows commits made by &#8220;John&#8221;.<\/td><\/tr><tr><td><code>git diff<\/code><\/td><td>Shows changes between the working directory and the staging area.<\/td><td><code>git diff<\/code> Displays unstaged changes in tracked files.<\/td><\/tr><tr><td><code>git diff --staged<\/code><\/td><td>Shows changes between the staging area and the last commit.<\/td><td><code>git diff --staged<\/code> Displays staged changes ready to be committed.<\/td><\/tr><tr><td><code>git show &lt;commit-hash&gt;<\/code><\/td><td>Shows details and changes for a specific commit.<\/td><td><code>git show abc123<\/code> Displays details of the commit with hash <code>abc123<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">8. Undo and Reset<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git reset HEAD~1<\/code><\/td><td>Undo last commit (keep files)<\/td><td><code>git reset HEAD~1<\/code><\/td><\/tr><tr><td><code>git reset --hard HEAD~1<\/code><\/td><td>Completely remove last commit<\/td><td><code>git reset --hard HEAD~1<\/code><\/td><\/tr><tr><td><code>git revert &lt;commit&gt;<\/code><\/td><td>Revert specific commit<\/td><td><code>git revert f3e1a90<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git reset &lt;file&gt;<\/code><\/td><td>Unstages a file but preserves its changes in the working directory.<\/td><td><code>git reset index.html<\/code> Removes <code>index.html<\/code> from the staging area.<\/td><\/tr><tr><td><code>git reset --hard &lt;commit-hash&gt;<\/code><\/td><td>Resets the repository to a specific commit, discarding changes.<\/td><td><code>git reset --hard abc123<\/code> Resets to commit <code>abc123<\/code>, discarding all later changes.<\/td><\/tr><tr><td><code>git revert &lt;commit-hash&gt;<\/code><\/td><td>Creates a new commit that undoes the changes of a specific commit.<\/td><td><code>git revert abc123<\/code> Creates a commit that reverses changes from <code>abc123<\/code>.<\/td><\/tr><tr><td><code>git checkout -- &lt;file&gt;<\/code><\/td><td>Discards changes in a file, restoring it to the last committed state.<\/td><td><code>git checkout -- index.html<\/code> Reverts <code>index.html<\/code> to its last committed version.<\/td><\/tr><tr><td><code>git clean -f<\/code><\/td><td>Removes untracked files from the working directory.<\/td><td><code>git clean -f<\/code> Deletes untracked files and directories.<\/td><\/tr><tr><td><code>git clean -fd<\/code><\/td><td>Removes untracked files and directories (including folders).<\/td><td><code>git clean -fd<\/code> Deletes untracked files and directories recursively.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">9. Git Diff Tools<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git diff<\/code><\/td><td>See unstaged changes<\/td><td><code>git diff<\/code><\/td><\/tr><tr><td><code>git diff --staged<\/code><\/td><td>See staged changes<\/td><td><code>git diff --staged<\/code><\/td><\/tr><tr><td><code>git diff &lt;branch1&gt; &lt;branch2&gt;<\/code><\/td><td>Compare branches<\/td><td><code>git diff main dev<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">10. Tags (Releases\/Versions)<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git tag<\/code><\/td><td>List tags<\/td><td><code>git tag<\/code><\/td><\/tr><tr><td><code>git tag v1.0<\/code><\/td><td>Create tag<\/td><td><code>git tag v1.0<\/code><\/td><\/tr><tr><td><code>git tag -a v1.1 -m \"Release v1.1\"<\/code><\/td><td>Annotated tag<\/td><td><code>git tag -a v1.1 -m \"Stable release\"<\/code><\/td><\/tr><tr><td><code>git push origin v1.1<\/code><\/td><td>Push tag to remote<\/td><td><code>git push origin v1.1<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git tag &lt;tag-name&gt;<\/code><\/td><td>Creates a lightweight tag at the current commit.<\/td><td><code>git tag v1.0<\/code> Creates a tag named <code>v1.0<\/code> for the current commit.<\/td><\/tr><tr><td><code>git tag -a &lt;tag-name&gt; -m \"&lt;message&gt;\"<\/code><\/td><td>Creates an annotated tag with a message.<\/td><td><code>git tag -a v1.0 -m \"Release 1.0\"<\/code> Creates an annotated tag with a message.<\/td><\/tr><tr><td><code>git tag<\/code><\/td><td>Lists all tags in the repository.<\/td><td><code>git tag<\/code> Shows tags like <code>v1.0<\/code>, <code>v2.0<\/code>.<\/td><\/tr><tr><td><code>git push origin &lt;tag-name&gt;<\/code><\/td><td>Pushes a specific tag to the remote repository.<\/td><td><code>git push origin v1.0<\/code> Pushes the <code>v1.0<\/code> tag to <code>origin<\/code>.<\/td><\/tr><tr><td><code>git push origin --tags<\/code><\/td><td>Pushes all tags to the remote repository.<\/td><td><code>git push origin --tags<\/code> Pushes all local tags to <code>origin<\/code>.<\/td><\/tr><tr><td><code>git tag -d &lt;tag-name&gt;<\/code><\/td><td>Deletes a tag locally.<\/td><td><code>git tag -d v1.0<\/code> Deletes the <code>v1.0<\/code> tag locally.<\/td><\/tr><tr><td><code>git push origin --delete &lt;tag-name&gt;<\/code><\/td><td>Deletes a tag from the remote repository.<\/td><td><code>git push origin --delete v1.0<\/code> Deletes the <code>v1.0<\/code> tag from <code>origin<\/code>.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">11. Git Ignore<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>File<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>.gitignore<\/code><\/td><td>Ignore files\/folders<\/td><td>Add <code>node_modules\/<\/code> or <code>*.log<\/code> in <code>.gitignore<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">12. Git Aliases (Optional)<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>git config --global alias.co checkout<\/code><\/td><td>Set alias<\/td><td><code>git co dev<\/code><\/td><\/tr><tr><td><code>git config --global alias.st status<\/code><\/td><td><code>git st<\/code> for status<\/td><td><code>git st<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">13. Miscellaneous Commands<\/h3>\n\n\n\n<p>Additional useful Git commands for various purposes.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>Command Name<\/strong><\/th><th><strong>Description<\/strong><\/th><th><strong>Example<\/strong><\/th><\/tr><\/thead><tbody><tr><td><code>git blame &lt;file&gt;<\/code><\/td><td>Shows who last modified each line of a file.<\/td><td><code>git blame index.html<\/code> Displays author and commit details for each line.<\/td><\/tr><tr><td><code>git bisect start<\/code><\/td><td>Starts a binary search to find a bug-introducing commit.<\/td><td><code>git bisect start<\/code> Begins the bisect process.<\/td><\/tr><tr><td><code>git bisect good &lt;commit-hash&gt;<\/code><\/td><td>Marks a commit as good during bisect.<\/td><td><code>git bisect good abc123<\/code> Marks commit <code>abc123<\/code> as good.<\/td><\/tr><tr><td><code>git bisect bad &lt;commit-hash&gt;<\/code><\/td><td>Marks a commit as bad during bisect.<\/td><td><code>git bisect bad def456<\/code> Marks commit <code>def456<\/code> as bad.<\/td><\/tr><tr><td><code>git bisect reset<\/code><\/td><td>Ends the bisect process and returns to the original state.<\/td><td><code>git bisect reset<\/code> Exits bisect mode.<\/td><\/tr><tr><td><code>git cherry-pick &lt;commit-hash&gt;<\/code><\/td><td>Applies a specific commit to the current branch.<\/td><td><code>git cherry-pick abc123<\/code> Applies the changes from commit <code>abc123<\/code>.<\/td><\/tr><tr><td><code>git archive --format=zip --output=&lt;file&gt;.zip &lt;branch&gt;<\/code><\/td><td>Creates a zip archive of a branch or commit.<\/td><td><code>git archive --format=zip --output=repo.zip main<\/code> Creates a <code>repo.zip<\/code> of the <code>main<\/code> branch.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Git Quick Command Cheatsheet<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Use Case<\/th><th>Command<\/th><\/tr><\/thead><tbody><tr><td>Initialize repo<\/td><td><code>git init<\/code><\/td><\/tr><tr><td>Clone repo<\/td><td><code>git clone URL<\/code><\/td><\/tr><tr><td>Check status<\/td><td><code>git status<\/code><\/td><\/tr><tr><td>Stage files<\/td><td><code>git add .<\/code><\/td><\/tr><tr><td>Commit changes<\/td><td><code>git commit -m \"msg\"<\/code><\/td><\/tr><tr><td>Push changes<\/td><td><code>git push origin branch<\/code><\/td><\/tr><tr><td>Pull changes<\/td><td><code>git pull<\/code><\/td><\/tr><tr><td>Create branch<\/td><td><code>git checkout -b branch<\/code><\/td><\/tr><tr><td>Merge branches<\/td><td><code>git merge branch<\/code><\/td><\/tr><tr><td>View history<\/td><td><code>git log --oneline<\/code><\/td><\/tr><tr><td>Reset commit<\/td><td><code>git reset HEAD~1<\/code><\/td><\/tr><tr><td>View remotes<\/td><td><code>git remote -v<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>1. Git Configuration Command Description Example git config &#8211;global user.name &#8220;Your Name&#8221; Set username globally git config &#8211;global user.name &#8220;Pritesh Thamke&#8221; git config &#8211;global user.email &#8220;you@example.com&#8221; Set email globally git config &#8211;global user.email &#8220;pritesh@example.com&#8221; git config &#8211;list View all config settings git config &#8211;list git config &#8211;global core.editor nano Set default editor git config &#8211;global &#8230; <a title=\"GIT Command Reference Table with Description and Examples\" class=\"read-more\" href=\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\" aria-label=\"Read more about GIT Command Reference Table with Description and Examples\">Read more<\/a><\/p>\n","protected":false},"author":200020,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1416","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GIT Command Reference Table with Description and Examples - XOps Tutorials!!!<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GIT Command Reference Table with Description and Examples - XOps Tutorials!!!\" \/>\n<meta property=\"og:description\" content=\"1. Git Configuration Command Description Example git config --global user.name &quot;Your Name&quot; Set username globally git config --global user.name &quot;Pritesh Thamke&quot; git config --global user.email &quot;you@example.com&quot; Set email globally git config --global user.email &quot;pritesh@example.com&quot; git config --list View all config settings git config --list git config --global core.editor nano Set default editor git config --global ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"XOps Tutorials!!!\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-01T10:42:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-01T13:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\" \/>\n<meta name=\"author\" content=\"Pritesh Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pritesh Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\"},\"author\":{\"name\":\"Pritesh Kumar\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\"},\"headline\":\"GIT Command Reference Table with Description and Examples\",\"datePublished\":\"2025-08-01T10:42:14+00:00\",\"dateModified\":\"2025-08-01T13:52:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\"},\"wordCount\":1366,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\",\"name\":\"GIT Command Reference Table with Description and Examples - XOps Tutorials!!!\",\"isPartOf\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\",\"datePublished\":\"2025-08-01T10:42:14+00:00\",\"dateModified\":\"2025-08-01T13:52:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage\",\"url\":\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\",\"contentUrl\":\"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.xopsschool.com\/tutorials\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GIT Command Reference Table with Description and Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#website\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/\",\"name\":\"XOps Tutorials!!!\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1\",\"name\":\"Pritesh Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g\",\"caption\":\"Pritesh Kumar\"},\"description\":\"Devops Engineer at Cotocus pvt.ltd\",\"url\":\"https:\/\/www.xopsschool.com\/tutorials\/author\/priteshcotocus\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GIT Command Reference Table with Description and Examples - XOps Tutorials!!!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/","og_locale":"en_US","og_type":"article","og_title":"GIT Command Reference Table with Description and Examples - XOps Tutorials!!!","og_description":"1. Git Configuration Command Description Example git config --global user.name \"Your Name\" Set username globally git config --global user.name \"Pritesh Thamke\" git config --global user.email \"you@example.com\" Set email globally git config --global user.email \"pritesh@example.com\" git config --list View all config settings git config --list git config --global core.editor nano Set default editor git config --global ... Read more","og_url":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/","og_site_name":"XOps Tutorials!!!","article_published_time":"2025-08-01T10:42:14+00:00","article_modified_time":"2025-08-01T13:52:15+00:00","og_image":[{"url":"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4","type":"","width":"","height":""}],"author":"Pritesh Kumar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Pritesh Kumar","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#article","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/"},"author":{"name":"Pritesh Kumar","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1"},"headline":"GIT Command Reference Table with Description and Examples","datePublished":"2025-08-01T10:42:14+00:00","dateModified":"2025-08-01T13:52:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/"},"wordCount":1366,"commentCount":0,"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/","url":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/","name":"GIT Command Reference Table with Description and Examples - XOps Tutorials!!!","isPartOf":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4","datePublished":"2025-08-01T10:42:14+00:00","dateModified":"2025-08-01T13:52:15+00:00","author":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1"},"breadcrumb":{"@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#primaryimage","url":"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4","contentUrl":"https:\/\/media.licdn.com\/dms\/image\/v2\/D4D12AQGP8DJF7eVIew\/article-cover_image-shrink_720_1280\/article-cover_image-shrink_720_1280\/0\/1689446115559?e=2147483647&amp;v=beta&amp;t=POicvl-vnNB7X4DaM4R4fwG6_SW7H3N5K0MZkVaoTY4"},{"@type":"BreadcrumbList","@id":"https:\/\/www.xopsschool.com\/tutorials\/git-command-reference-table-with-description-and-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.xopsschool.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"GIT Command Reference Table with Description and Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.xopsschool.com\/tutorials\/#website","url":"https:\/\/www.xopsschool.com\/tutorials\/","name":"XOps Tutorials!!!","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.xopsschool.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/121833f332dc4a3674d2904cface44f1","name":"Pritesh Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.xopsschool.com\/tutorials\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/231a0e8b7a02636f2fbacf8dcf4494cb1cc0d49ecc9a8165fbaeaeeaf102641a?s=96&d=mm&r=g","caption":"Pritesh Kumar"},"description":"Devops Engineer at Cotocus pvt.ltd","url":"https:\/\/www.xopsschool.com\/tutorials\/author\/priteshcotocus\/"}]}},"_links":{"self":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/1416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/users\/200020"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/comments?post=1416"}],"version-history":[{"count":3,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/1416\/revisions"}],"predecessor-version":[{"id":1420,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/posts\/1416\/revisions\/1420"}],"wp:attachment":[{"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/media?parent=1416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/categories?post=1416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xopsschool.com\/tutorials\/wp-json\/wp\/v2\/tags?post=1416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}