[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"cheatsheet:\u002Fcheatsheets\u002Fgit-the-emergency-kit":3,"categories-en":739},{"id":4,"slug":5,"title":6,"description":7,"category":8,"level":9,"codeLanguage":10,"views":11,"updatedAt":12,"tags":13,"sections":21,"snippetCount":738},"3f9ca1a9-a795-4d70-950e-71351bf7865f","git-the-emergency-kit","Git: The Emergency Kit","Messed up the code? Save this guide. Essential commands to undo mistakes, revert commits and save your job.","devops","advanced","bash",7,"2026-04-11T21:01:58.511783+00:00",[14,15,16,8,17,18,19,20],"git","version-control","cli","linux","workflow","cheatsheet","terminal",[22,148,243,326,424,507,590,649],{"id":23,"title":24,"description":25,"snippets":26},"16196780-c3bf-4eeb-9ae8-aadac66c4d38","📊 Status and History","Commands to check the current repository state, explore commit history in advanced ways, and view changes in specific files or commits. Essential for understanding workflow and debugging history.",[27,34,40,46,52,58,64,70,76,82,88,94,100,106,112,118,124,130,136,142],{"id":28,"title":29,"description":30,"code":31,"language":10,"filename":32,"whenToUse":32,"highlighted":33},"d5521995-3682-430f-bb9e-be3dc33ac07f","Short Status","Displays the status of the working directory and staging area concisely. The -s (or --short) flag shows the output in an abbreviated, easy-to-read format, indicating modified, added, or deleted files.","git status -s",null,"\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status -s\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":35,"title":36,"description":37,"code":38,"language":10,"filename":32,"whenToUse":32,"highlighted":39},"04e1f13b-b4c8-4787-b0e2-d4b13af2e9b3","Status for Scripts (Porcelain)","Provides status output formatted to be easily parsed by scripts. It is a stable interface not designed for human readability, ideal for automation.","git status --porcelain","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status --porcelain\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":41,"title":42,"description":43,"code":44,"language":10,"filename":32,"whenToUse":32,"highlighted":45},"a346513e-27eb-4e1a-a210-f77d4c6780a1","Include Ignored Files in Status","Includes ignored files (listed in .gitignore) in the status output, showing them in the \"Untracked files\" section. Useful for checking if ignore rules are working as expected.","git status --ignored","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status --ignored\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":47,"title":48,"description":49,"code":50,"language":10,"filename":32,"whenToUse":32,"highlighted":51},"eaa0a442-7042-495d-a2d3-0e54817768be","Branch Information in Status","Displays additional information about the current branch, such as the branch name, whether it's ahead or behind its upstream, and the current commit hash.","git status --branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status --branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":53,"title":54,"description":55,"code":56,"language":10,"filename":32,"whenToUse":32,"highlighted":57},"b1a777c2-7e3b-45b8-a184-7d4a7aa69aba","Show Stashes in Status","Shows the number of stashes you currently have. Useful for remembering if there are saved changes that need to be applied or removed.","git status --show-stash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> status --show-stash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":59,"title":60,"description":61,"code":62,"language":10,"filename":32,"whenToUse":32,"highlighted":63},"8f1cda8a-23aa-455a-88d6-877eef3c08e1","Full History Log","Provides a complete and compact view of the commit history. `--oneline` shows each commit on one line, `--graph` draws an ASCII graph of the history, `--all` includes remote branches and tags, and `--decorate` shows branch and tag names.","git log --oneline --graph --all --decorate","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --oneline --graph --all --decorate\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":65,"title":66,"description":67,"code":68,"language":10,"filename":32,"whenToUse":32,"highlighted":69},"cf8e186b-0c31-4550-bdf0-2d27b9d03a33","Log with Statistics","Displays statistics for each commit, showing which files were modified and the number of lines added\u002Fdeleted. Useful for a quick overview of each commit's impact.","git log --stat","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --stat\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":71,"title":72,"description":73,"code":74,"language":10,"filename":32,"whenToUse":32,"highlighted":75},"f4c15f52-7e2a-4548-96f3-6351409bddbe","Log with Full Diff (Patch)","Shows the full diff (patch) for each commit, displaying the exact line-by-line changes. Essential for reviewing the content of each change.","git log --patch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --patch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":77,"title":78,"description":79,"code":80,"language":10,"filename":32,"whenToUse":32,"highlighted":81},"14cb25b0-7723-4eca-a53f-93184c9480ff","Log by Period","Filters the commit history to show only those made within a specific period. Formats like \"2 weeks ago\", \"yesterday\", \"2023-01-01\" can be used.","git log --since=\"2 weeks ago\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --since=\"2 weeks ago\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":83,"title":84,"description":85,"code":86,"language":10,"filename":32,"whenToUse":32,"highlighted":87},"0a03d00a-0e05-429a-baee-9a1cbd1702c8","Log by Author","Filters the history to display only commits made by a specific author. The author's name must match the one configured in Git.","git log --author=\"nome\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --author=\"nome\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":89,"title":90,"description":91,"code":92,"language":10,"filename":32,"whenToUse":32,"highlighted":93},"7e3949c7-d16e-4e03-bb91-e8b5f3829167","Log by Commit Message","Filters the commit history by a keyword or regex pattern in the commit message. Useful for finding commits related to bug fixes or specific features.","git log --grep=\"fix\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --grep=\"fix\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":95,"title":96,"description":97,"code":98,"language":10,"filename":32,"whenToUse":32,"highlighted":99},"48605519-d61d-457d-93ce-98801d6044e5","Log by Code Change (Pickaxe)","Searches for commits that introduced or removed a specific string in the code (also known as the \"pickaxe\" option). It's powerful for tracking where a function or variable was first changed.","git log -S \"função\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log -S \"função\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":101,"title":102,"description":103,"code":104,"language":10,"filename":32,"whenToUse":32,"highlighted":105},"b4768fb7-298e-453e-80bc-ca688d468a85","Log Following File Renames","Displays the history of a specific file, following its history through renames. Ensures you see all changes to the file, even if its name has changed.","git log --follow arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --follow arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":107,"title":108,"description":109,"code":110,"language":10,"filename":32,"whenToUse":32,"highlighted":111},"97f65329-2711-4365-af1e-eb5118d15714","Log Colorido e Formatado","Apresenta um log de commits altamente formatado e colorido, exibindo hash, branches\u002Ftags, mensagem, data relativa e autor. Personalizável para uma melhor legibilidade visual.","git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003C%an>%Creset'","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&#x3C;%an>%Creset'\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":113,"title":114,"description":115,"code":116,"language":10,"filename":32,"whenToUse":32,"highlighted":117},"9255239b-bc88-4aed-99b8-7be320950351","Compact Log with Graph","A compact and decorated view of the history, showing the graph of branches and tags. Similar to the full log, but without including all remote references by default.","git log --oneline --decorate --graph","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --oneline --decorate --graph\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":119,"title":120,"description":121,"code":122,"language":10,"filename":32,"whenToUse":32,"highlighted":123},"22481293-9a6b-4fd3-988e-b7e073d7e7bb","Log in Reverse Chronological Order","Displays the commit history in reverse chronological order, i.e., from the oldest commit to the most recent. Useful for seeing the evolution of a project.","git log --reverse","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log --reverse\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":125,"title":126,"description":127,"code":128,"language":10,"filename":32,"whenToUse":32,"highlighted":129},"c304601c-7ac0-4a6c-b71d-631c467e6a33","View Last Commit","Shows the content of the last commit on the current branch, including the diff. It's a quick way to review what was most recently committed.","git show HEAD","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> show HEAD\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":131,"title":132,"description":133,"code":134,"language":10,"filename":32,"whenToUse":32,"highlighted":135},"2f69d972-d61d-47b4-95ea-8aa61258c744","View Specific Commit (HEAD~2)","Displays the content of the commit that is two commits before HEAD. Any commit reference can be used (hash, tag, branch, HEAD~n).","git show HEAD~2","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> show HEAD~2\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":137,"title":138,"description":139,"code":140,"language":10,"filename":32,"whenToUse":32,"highlighted":141},"894358b2-3b4d-4d12-8a98-09a58fd05808","View Only Modified File Names","Shows only the names of files that were modified in the specified commit, without displaying the full diff.","git show --name-only HEAD","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> show --name-only HEAD\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":143,"title":144,"description":145,"code":146,"language":10,"filename":32,"whenToUse":32,"highlighted":147},"3e559bf8-e5cd-41cd-b1d3-863ba2690c05","View Commit with Statistics","Displays modification statistics for the specified commit, showing which files were changed and the number of lines added\u002Fdeleted.","git show --stat HEAD","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> show --stat HEAD\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":149,"title":150,"description":151,"snippets":152},"a93a7c62-14e1-44c0-81b6-eb5f2f1dd496","🌿 Advanced Branches","Essential commands for creating, listing, managing, and deleting branches, both local and remote. Fundamental for collaborative development and workflow organization.",[153,159,165,171,177,183,189,195,201,207,213,219,225,231,237],{"id":154,"title":155,"description":156,"code":157,"language":10,"filename":32,"whenToUse":32,"highlighted":158},"c0bc007b-fd49-4f67-a60f-fbed132c3aa9","Create and Switch to New Branch (Checkout)","Creates a new branch with the specified name (e.g., `feature\u002Fnew-feature`) and immediately switches to it. It's a shortcut for `git branch \u003Cname>` followed by `git checkout \u003Cname>`.","git checkout -b feature\u002Fnova-funcionalidade","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> checkout -b feature\u002Fnova-funcionalidade\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":160,"title":161,"description":162,"code":163,"language":10,"filename":32,"whenToUse":32,"highlighted":164},"195d2e0b-bdec-4deb-927b-32d9a7cf9673","Create and Switch to New Branch (Switch)","Modern and more intuitive command to create a new branch and switch to it. It is the recommended alternative to `git checkout -b` for this purpose.","git switch -c feature\u002Fnova-funcionalidade","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> switch -c feature\u002Fnova-funcionalidade\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":166,"title":167,"description":168,"code":169,"language":10,"filename":32,"whenToUse":32,"highlighted":170},"d62508f8-9df7-44b5-94a9-f4b778ddf6c2","List All Branches (Local and Remote)","Lists all branches, including local and remote ones. Remote branches are prefixed with the remote name (e.g., `remotes\u002Forigin\u002Fmain`).","git branch -a","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -a\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":172,"title":173,"description":174,"code":175,"language":10,"filename":32,"whenToUse":32,"highlighted":176},"1dd7e650-f6bc-4287-95c1-d760d665af3c","List Only Remote Branches","Lists only remote branches. Useful for seeing which branches exist in remote repositories without cluttering the output with local ones.","git branch -r","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -r\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":178,"title":179,"description":180,"code":181,"language":10,"filename":32,"whenToUse":32,"highlighted":182},"f88e8e71-197e-4661-a49c-6926005ae9c9","List Branches with Last Commit","Lists local branches with additional information, such as the last commit of each branch and the commit message. Helps to get a quick overview of each branch's state.","git branch -v","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -v\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":184,"title":185,"description":186,"code":187,"language":10,"filename":32,"whenToUse":32,"highlighted":188},"fefd589d-d789-4203-9ea2-8dfa4697c7ed","List Merged Branches","Lists branches that have already been fully merged into the current branch. Generally, these are branches that can be safely deleted.","git branch --merged","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch --merged\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":190,"title":191,"description":192,"code":193,"language":10,"filename":32,"whenToUse":32,"highlighted":194},"30aebfd1-2011-4e59-a35e-829e0169933a","List Unmerged Branches","Lists branches that have not yet been merged into the current branch. These branches contain work that has not yet been integrated and should not be deleted carelessly.","git branch --no-merged","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch --no-merged\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":196,"title":197,"description":198,"code":199,"language":10,"filename":32,"whenToUse":32,"highlighted":200},"8df45cec-0f16-43e7-aff9-3591fbd94e57","Delete Local Branch (Safe)","Deletes the specified local branch (e.g., `feature-branch`). This is a \"safe delete\" that will fail if the branch contains unmerged commits into the current branch.","git branch -d feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -d feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":202,"title":203,"description":204,"code":205,"language":10,"filename":32,"whenToUse":32,"highlighted":206},"4ac146b0-f63f-426c-86ec-a85c5cf86854","Force Delete Local Branch","Forces the deletion of the specified local branch, even if it contains unmerged commits. Use with caution, as it may result in loss of work.","git branch -D feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -D feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":208,"title":209,"description":210,"code":211,"language":10,"filename":32,"whenToUse":32,"highlighted":212},"312c31b4-e001-4119-b7f8-c1fdcc023a46","Delete Remote Branch","Deletes a branch from the remote repository (e.g., `origin\u002Ffeature-branch`). It's the command to remove remote branches that are no longer needed.","git push origin --delete feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push origin --delete feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":214,"title":215,"description":216,"code":217,"language":10,"filename":32,"whenToUse":32,"highlighted":218},"80f95fc6-7122-4692-8bca-f72ba2f8e476","Rename Current Branch","Renames the local branch `old-name` to `new-name`. If `old-name` is omitted, renames the current branch.","git branch -m old-name new-name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -m old-name new-name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":220,"title":221,"description":222,"code":223,"language":10,"filename":32,"whenToUse":32,"highlighted":224},"b21226a7-aa3c-4c81-81c0-6d5e3eea3677","Force Branch Rename","Forces the renaming of a branch, even if `new-name` already exists. Use with caution to avoid overwriting existing branches.","git branch -M old-name new-name","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch -M old-name new-name\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":226,"title":227,"description":228,"code":229,"language":10,"filename":32,"whenToUse":32,"highlighted":230},"71244832-d365-484d-8050-733181fd6a3c","Show Current Branch","Displays the name of the current branch you are working on. Useful for scripts or to quickly confirm the branch.","git branch --show-current","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch --show-current\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":232,"title":233,"description":234,"code":235,"language":10,"filename":32,"whenToUse":32,"highlighted":236},"b74be49c-75f6-4ef3-8833-c573daa3132b","Branches Containing a Specific Commit","Lists all branches that contain the specified commit (e.g., `abc123`). Useful for tracking where a specific commit was integrated.","git branch --contains abc123","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch --contains abc123\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":238,"title":239,"description":240,"code":241,"language":10,"filename":32,"whenToUse":32,"highlighted":242},"98457a55-9958-4377-a4f1-e7120ca06884","Sort Branches by Last Commit Date","Lists local branches sorted by the date of the last commit, from most recent to oldest. The `-` flag reverses the order.","git branch --sort=-committerdate","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> branch --sort=-committerdate\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":244,"title":245,"description":246,"snippets":247},"25332946-7d15-4dee-b46f-0f934b919326","🔄 Merge and Rebase","Commands for integrating changes between branches through traditional merge or reorganizing history with rebase. Includes cherry-pick for applying specific commits.",[248,254,260,266,272,278,284,290,296,302,308,314,320],{"id":249,"title":250,"description":251,"code":252,"language":10,"filename":32,"whenToUse":32,"highlighted":253},"4ccce1d6-317d-4d73-9116-a153ecc98371","Normal Merge","Integrates changes from `feature-branch` into the current branch. If possible, performs a fast-forward merge; otherwise, creates a merge commit.","git merge feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> merge feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":255,"title":256,"description":257,"code":258,"language":10,"filename":32,"whenToUse":32,"highlighted":259},"847f9a2a-1510-444a-8d6d-7f36165d51dd","Merge Without Fast-Forward","Forces the creation of a merge commit, even if a fast-forward merge was possible. This preserves the branch history, explicitly showing where the feature was integrated.","git merge --no-ff feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> merge --no-ff feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":261,"title":262,"description":263,"code":264,"language":10,"filename":32,"whenToUse":32,"highlighted":265},"7110158d-61bc-468a-a847-805f275df1b1","Squash Merge","Applies changes from `feature-branch` to the current branch as a single commit, without recording the `feature-branch` in the history. The commits from `feature-branch` are \"squashed\" into a single commit on the target branch.","git merge --squash feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> merge --squash feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":267,"title":268,"description":269,"code":270,"language":10,"filename":32,"whenToUse":32,"highlighted":271},"62047dda-0048-40aa-a721-af7badef13a9","Interactive Rebase (Last N Commits)","Starts an interactive rebase on the last 3 commits from HEAD. Allows reordering, editing, squashing, splitting, or removing commits. Opens a text editor with the options.","git rebase -i HEAD~3","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rebase -i HEAD~3\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":273,"title":274,"description":275,"code":276,"language":10,"filename":32,"whenToUse":32,"highlighted":277},"b033ab16-b698-4279-acc4-656e508f4479","Interactive Rebase (From a Branch)","Starts an interactive rebase of all commits on the current branch that are not on the `main` branch. Useful for cleaning up history before merging into `main`.","git rebase -i main","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rebase -i main\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":279,"title":280,"description":281,"code":282,"language":10,"filename":32,"whenToUse":32,"highlighted":283},"80741727-4ea5-4da4-a515-855e1d9455af","Continue Rebase","Continues the rebase process after resolving merge conflicts or after editing a commit during an interactive rebase.","git rebase --continue","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rebase --continue\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":285,"title":286,"description":287,"code":288,"language":10,"filename":32,"whenToUse":32,"highlighted":289},"c62c9922-1efb-40ae-8cb2-93743c707bb0","Cancel Rebase","Cancels the ongoing rebase and returns the branch to its state before the rebase started. Useful if you decide not to continue or encounter insoluble problems.","git rebase --abort","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> rebase --abort\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":291,"title":292,"description":293,"code":294,"language":10,"filename":32,"whenToUse":32,"highlighted":295},"dc493563-c288-455c-9ff6-441d8b48e75b","Cherry-pick Specific Commit","Applies the changes introduced by a specific commit (e.g., `abc123`) to the current branch, creating a new commit with those changes. Useful for porting specific fixes or features.","git cherry-pick abc123","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick abc123\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":297,"title":298,"description":299,"code":300,"language":10,"filename":32,"whenToUse":32,"highlighted":301},"a16bdda5-92a8-4814-85d8-94c274bf7eb2","Cherry-pick Commit Range","Applies a range of commits (from `abc123` exclusive to `def456` inclusive) to the current branch. Useful for porting multiple changes at once.","git cherry-pick abc123..def456","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick abc123..def456\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":303,"title":304,"description":305,"code":306,"language":10,"filename":32,"whenToUse":32,"highlighted":307},"72f00f18-cf03-4b83-aaea-9b349c621c5a","Cherry-pick Without Creating Commit","Applies the changes from commit `abc123` to the working directory and staging area, but without creating a new commit. Allows reviewing and adjusting changes before committing them.","git cherry-pick --no-commit abc123","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick --no-commit abc123\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":309,"title":310,"description":311,"code":312,"language":10,"filename":32,"whenToUse":32,"highlighted":313},"1e8787c3-7a39-4c7a-ac71-651e7ec33ec6","Cherry-pick with Origin Credit","Applies commit `abc123` and adds a line \"cherry-picked from commit abc123\" to the new commit message, indicating the origin.","git cherry-pick -x abc123","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick -x abc123\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":315,"title":316,"description":317,"code":318,"language":10,"filename":32,"whenToUse":32,"highlighted":319},"54d36d6c-7afb-4496-ae2c-bbc4ca7c2a9e","Cherry-pick with Sign-off","Applies commit `abc123` and adds a line \"Signed-off-by: Your Name \u003Cyour.email@example.com>\" to the new commit message, indicating that you certify the origin of the change.","git cherry-pick --signoff abc123","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick --signoff abc123\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":321,"title":322,"description":323,"code":324,"language":10,"filename":32,"whenToUse":32,"highlighted":325},"cbd9ef8f-7683-474d-96b7-a35fc305dd66","Cancel Cherry-pick","Cancels an ongoing cherry-pick and returns the branch to its previous state. Useful if there are conflicts or if the cherry-pick is no longer desired.","git cherry-pick --abort","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> cherry-pick --abort\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":327,"title":328,"description":329,"snippets":330},"54d3afc6-2f14-48ae-8f8b-3c508afd1cc2","🔍 Search and Investigation","Powerful tools for searching within source code, investigating line-by-line modification history, and using git bisect to identify the commit that introduced a bug.",[331,337,343,349,355,361,367,373,376,382,388,394,400,406,412,418],{"id":332,"title":333,"description":334,"code":335,"language":10,"filename":32,"whenToUse":32,"highlighted":336},"c867bfac-e552-40c9-aaf4-4e336ebeac17","Search String in Working Tree","Searches for a string or regex pattern in Git-tracked files in the working directory. It's like a traditional `grep`, but optimized for Git repositories.","git grep \"função\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> grep \"função\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":338,"title":339,"description":340,"code":341,"language":10,"filename":32,"whenToUse":32,"highlighted":342},"ba641894-b62f-4ec5-892d-fd1f8c2110af","Search String in Specific Commit","Searches for a string or regex pattern in the code within a specific commit (e.g., `HEAD~5`). Useful for finding where a string existed at an earlier point in history.","git grep \"função\" HEAD~5","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> grep \"função\" HEAD~5\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":344,"title":345,"description":346,"code":347,"language":10,"filename":32,"whenToUse":32,"highlighted":348},"13429235-a83a-4397-849f-2a82d4d886f3","Search String with Line Numbers","Searches for a string and displays the line numbers where the match was found. Helps quickly locate the occurrence in the file.","git grep -n \"função\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> grep -n \"função\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":350,"title":351,"description":352,"code":353,"language":10,"filename":32,"whenToUse":32,"highlighted":354},"8f3fa42f-7d94-4689-8a45-e6d26cb3b670","Search String Case Insensitive","Performs a case-insensitive search, ignoring the difference between uppercase and lowercase letters when looking for the string.","git grep -i \"função\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> grep -i \"função\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":356,"title":357,"description":358,"code":359,"language":10,"filename":32,"whenToUse":32,"highlighted":360},"5cfe885a-b134-4c94-982d-8382debab75f","Blame: Who Modified Each Line","Shows the line-by-line revision history for a specific file. For each line, it displays the commit that last modified it, the author, and the date. Useful for identifying who and when changed a part of the code.","git blame arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> blame arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":362,"title":363,"description":364,"code":365,"language":10,"filename":32,"whenToUse":32,"highlighted":366},"833bea60-e4df-4f65-8d09-f510e1ee75df","Blame Specific Lines","Restricts the output of `git blame` to a specific range of lines (from line 10 to 20, inclusive) of a file. Useful for focusing on a problematic section.","git blame -L 10,20 arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> blame -L 10,20 arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":368,"title":369,"description":370,"code":371,"language":10,"filename":32,"whenToUse":32,"highlighted":372},"7081edbd-eb09-4868-9504-42752aa129ca","File History with Patches","Displays the history of commits that affected `arquivo.txt`, including the full patch (diff) of each change. Allows seeing exactly how the file evolved.","git log -p arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> log -p arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":374,"title":375,"description":103,"code":104,"language":10,"filename":32,"whenToUse":32,"highlighted":105},"0ba32136-fab0-453e-ba5f-fbe9de0d330e","File History Following Renames",{"id":377,"title":378,"description":379,"code":380,"language":10,"filename":32,"whenToUse":32,"highlighted":381},"0ffd6b0b-2a54-445f-afec-653ee2588daf","Start Bisect for Bugs","Starts a `git bisect` session, which is a tool to find the commit that introduced a bug using a binary search through the history.","git bisect start","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect start\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":383,"title":384,"description":385,"code":386,"language":10,"filename":32,"whenToUse":32,"highlighted":387},"76ba84fd-43d5-45be-b444-c65a103955c3","Mark Current Commit as \"Bad\"","Marks the current commit (HEAD) as \"bad\", indicating that the bug is present at this point.","git bisect bad HEAD","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect bad HEAD\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":389,"title":390,"description":391,"code":392,"language":10,"filename":32,"whenToUse":32,"highlighted":393},"879c4b93-5bbc-4be5-8e8e-d83437cce3ba","Mark Known Version as \"Good\"","Marks a known commit (e.g., `v1.0.0`) as \"good\", indicating that the bug was not present at this point. Git then chooses an intermediate commit for you to test.","git bisect good v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect good v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":395,"title":396,"description":397,"code":398,"language":10,"filename":32,"whenToUse":32,"highlighted":399},"f189048b-ee8f-4bb1-bf00-3f8768f774ab","Automate Bisect with Tests","Automates the bisect process by running a script or command (e.g., `npm test`) on each commit. The script must return 0 for \"good\" and an error code (1-127) for \"bad\".","git bisect run npm test","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect run npm test\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":401,"title":402,"description":403,"code":404,"language":10,"filename":32,"whenToUse":32,"highlighted":405},"ccdea1be-2e6a-4927-8377-9844c963d5a5","Finish Bisect","Finishes the `git bisect` session and returns the branch to the commit it was on before starting the bisect.","git bisect reset","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect reset\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":407,"title":408,"description":409,"code":410,"language":10,"filename":32,"whenToUse":32,"highlighted":411},"96a41842-2534-4ae8-83c9-f30557a05531","Visualize Bisect Graph","Opens a graphical interface (if configured) to visualize the commit graph and bisect progress.","git bisect visualize","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect visualize\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":413,"title":414,"description":415,"code":416,"language":10,"filename":32,"whenToUse":32,"highlighted":417},"d434d6bf-1053-488e-92e7-7265d67a6409","Show Bisect Log","Shows the log of all `git bisect` commands executed in the current session, useful for reviewing the process.","git bisect log","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect log\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":419,"title":420,"description":421,"code":422,"language":10,"filename":32,"whenToUse":32,"highlighted":423},"fa37e09f-637c-41c1-8643-b98fa4e35ba7","Repeat Bisect from a Log","Repeats a bisect session from a previously saved log file, allowing the debugging process to be recreated.","git bisect replay arquivo.log","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> bisect replay arquivo.log\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":425,"title":426,"description":427,"snippets":428},"57703741-4d3c-4075-a8eb-84d172320139","🏷️ Tags and Releases","Commands for creating, listing, and managing tags — immutable references to specific points in repository history, typically used for marking software versions or releases.",[429,435,441,447,453,459,465,471,477,483,489,495,501],{"id":430,"title":431,"description":432,"code":433,"language":10,"filename":32,"whenToUse":32,"highlighted":434},"f4c71f62-9466-429d-ab9d-d633910f6af0","Create Lightweight Tag","Creates a lightweight tag named `v1.0.0` on the current commit. Lightweight tags are just a pointer to a commit.","git tag v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":436,"title":437,"description":438,"code":439,"language":10,"filename":32,"whenToUse":32,"highlighted":440},"7c9540cd-dca6-40cc-a800-1691a064cd9f","Create Annotated Tag","Creates an annotated tag named `v1.0.0` with a descriptive message. Annotated tags are full Git objects, containing the tagger's name, email, date, and message, and are recommended for releases.","git tag -a v1.0.0 -m \"Release 1.0.0\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -a v1.0.0 -m \"Release 1.0.0\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":442,"title":443,"description":444,"code":445,"language":10,"filename":32,"whenToUse":32,"highlighted":446},"0415c8ff-effa-49e1-9f7f-18d7d141124b","Create Annotated Tag on Specific Commit","Creates an annotated tag `v1.0.0` on a specific commit (e.g., `abc123`), instead of HEAD. Useful for marking past commits.","git tag -a v1.0.0 abc123 -m \"Tag commit específico\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -a v1.0.0 abc123 -m \"Tag commit específico\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":448,"title":449,"description":450,"code":451,"language":10,"filename":32,"whenToUse":32,"highlighted":452},"542cc18d-de90-4275-9357-e9d71ce4541e","List All Tags","Lists all tags in the local repository in alphabetical order.","git tag","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":454,"title":455,"description":456,"code":457,"language":10,"filename":32,"whenToUse":32,"highlighted":458},"f250411c-aff1-40ea-91a6-ef187b98eca9","Filter Tags","Lists tags that match a specific pattern (e.g., all tags starting with \"v1.\").","git tag -l \"v1.*\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -l \"v1.*\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":460,"title":461,"description":462,"code":463,"language":10,"filename":32,"whenToUse":32,"highlighted":464},"6f2b0c71-0062-4fef-8cbc-1573770b9566","View Tag Details","Displays the details of a specific tag, including the tag message (if annotated) and the commit it points to.","git show v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> show v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":466,"title":467,"description":468,"code":469,"language":10,"filename":32,"whenToUse":32,"highlighted":470},"ff0f1886-1430-4689-a1aa-fef41201d8d8","Delete Local Tag","Deletes tag `v1.0.0` from the local repository. This does not remove the tag from remote repositories.","git tag -d v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -d v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":472,"title":473,"description":474,"code":475,"language":10,"filename":32,"whenToUse":32,"highlighted":476},"3a10c534-47d2-4b1d-a467-e21c69223b9b","Delete Remote Tag","Deletes the `v1.0.0` tag from the remote repository `origin`. This is necessary to remove published tags.","git push origin --delete v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push origin --delete v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":478,"title":479,"description":480,"code":481,"language":10,"filename":32,"whenToUse":32,"highlighted":482},"f934183d-69ca-4985-a783-31ce0151648e","Push Specific Tag to Remote","Pushes a specific tag (`v1.0.0`) to the remote repository `origin`. Tags are not automatically pushed with `git push`.","git push origin v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push origin v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":484,"title":485,"description":486,"code":487,"language":10,"filename":32,"whenToUse":32,"highlighted":488},"26246b4f-7c75-42f8-98ae-a2fcc420b32a","Push All Tags to Remote","Pushes all local tags to the remote repository `origin`. Useful for publishing multiple tags at once.","git push origin --tags","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push origin --tags\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":490,"title":491,"description":492,"code":493,"language":10,"filename":32,"whenToUse":32,"highlighted":494},"5590fa12-dd07-43e0-b7c2-3a5d351890cf","Verify Tag Signature","Verifies the GPG signature of an annotated tag. Requires the tag to have been signed and the signatory's GPG key to be available.","git tag -v v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -v v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":496,"title":497,"description":498,"code":499,"language":10,"filename":32,"whenToUse":32,"highlighted":500},"3aca9365-989f-4051-bb67-30bbc6cf4f8e","Create Signed Tag","Creates an annotated and GPG-signed tag. The signature ensures the authenticity and integrity of the tag.","git tag -s v1.0.0 -m \"Release\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -s v1.0.0 -m \"Release\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":502,"title":503,"description":504,"code":505,"language":10,"filename":32,"whenToUse":32,"highlighted":506},"08d4ca4d-80bd-4e71-ab2c-b46b204a5020","Force Tag Creation\u002FUpdate","Forces the creation or update of an existing tag. Use with caution, as it can overwrite important tags.","git tag -f v1.0.0","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> tag -f v1.0.0\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":508,"title":509,"description":510,"snippets":511},"8572e522-7b8c-4676-a676-05a6e3fbd7cb","📦 Advanced Stash","Commands for managing Git stash, a temporary area to store uncommitted changes when you need to switch branches or handle an interruption.",[512,518,524,530,536,542,548,554,560,566,572,578,584],{"id":513,"title":514,"description":515,"code":516,"language":10,"filename":32,"whenToUse":32,"highlighted":517},"2d54cb66-d277-43c8-ac24-7d661c3b8e04","Basic Stash","Saves uncommitted changes (modifications in the working directory and staged files) to a stash stack, reverting the working directory to the state of the last commit. Untracked files are not included by default.","git stash","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":519,"title":520,"description":521,"code":522,"language":10,"filename":32,"whenToUse":32,"highlighted":523},"e3410de0-25e1-4114-854a-127036b4dd0b","Stash with Message","Saves changes with a descriptive message. The message helps identify the stash's content later, especially when there are multiple stashes.","git stash push -m \"WIP: feature X\"","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash push -m \"WIP: feature X\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":525,"title":526,"description":527,"code":528,"language":10,"filename":32,"whenToUse":32,"highlighted":529},"f42b73e3-6132-4d44-986d-7611eb4a743f","Stash Specific File","Saves only the changes of a specific file to the stash, leaving other files unchanged. The `--` is necessary to distinguish the file path from other options.","git stash push -- arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash push -- arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":531,"title":532,"description":533,"code":534,"language":10,"filename":32,"whenToUse":32,"highlighted":535},"f6fb88ce-6cba-4874-bbba-3e035b6cbcec","Stash Including Untracked Files","Saves changes, including untracked files, to the stash. Useful for saving the entire working directory state.","git stash push --include-untracked","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash push --include-untracked\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":537,"title":538,"description":539,"code":540,"language":10,"filename":32,"whenToUse":32,"highlighted":541},"fca831d0-95dc-43fc-b5ae-8d4f5fbe57bd","List Stashes","Lists all currently stored stashes, showing a brief description and the index of each (e.g., `stash@{0}`).","git stash list","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash list\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":543,"title":544,"description":545,"code":546,"language":10,"filename":32,"whenToUse":32,"highlighted":547},"0aa7672c-8230-4021-80bf-499b3210d4a6","View Stash Changes","Displays a summary of the changes contained in a specific stash (e.g., `stash@{0}`). Shows which files were modified.","git stash show stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash show stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":549,"title":550,"description":551,"code":552,"language":10,"filename":32,"whenToUse":32,"highlighted":553},"6bc9944e-3028-48c7-9fca-b06cde80b20f","View Full Stash Patch","Shows the full patch (diff) of a specific stash, displaying line-by-line changes. Essential for reviewing content before applying.","git stash show -p stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash show -p stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":555,"title":556,"description":557,"code":558,"language":10,"filename":32,"whenToUse":32,"highlighted":559},"d8758f95-85f9-410f-b48a-33a5fa918868","Apply Stash Without Removing","Applies the changes from a specific stash to the working directory, but keeps the stash on the stack. Useful if you want to apply the same stash to multiple branches.","git stash apply stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash apply stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":561,"title":562,"description":563,"code":564,"language":10,"filename":32,"whenToUse":32,"highlighted":565},"4aec565c-948a-4ed5-9f52-a48a940cdb8d","Apply and Drop Stash","Applies the changes from a specific stash to the working directory and then removes the stash from the stack. It's the most common command for applying and cleaning stashes.","git stash pop stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash pop stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":567,"title":568,"description":569,"code":570,"language":10,"filename":32,"whenToUse":32,"highlighted":571},"f3c069b4-7c72-4a88-930c-2a590e7b8d5a","Remove Specific Stash","Removes a specific stash from the stack without applying its changes. Useful for discarding stashes that are no longer needed.","git stash drop stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash drop stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":573,"title":574,"description":575,"code":576,"language":10,"filename":32,"whenToUse":32,"highlighted":577},"82f440e4-03ad-4794-aa04-39c3828e27b1","Clear All Stashes","Removes all stashes from the stack. Use with extreme caution, as this action is irreversible.","git stash clear","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash clear\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":579,"title":580,"description":581,"code":582,"language":10,"filename":32,"whenToUse":32,"highlighted":583},"32fcfa39-f677-41f7-a941-595f6f95f17e","Create Branch From Stash","Creates a new branch from the commit where the stash was created, applies the stash to it, and then removes the stash from the stack. Useful for continuing work from a stash on a new branch.","git stash branch nova-branch stash@{0}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash branch nova-branch stash@{0}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":585,"title":586,"description":587,"code":588,"language":10,"filename":32,"whenToUse":32,"highlighted":589},"f7b7ab15-d3f2-4788-8f35-a7f43c17b192","Stash Only Unstaged Changes","Saves unstaged changes to the stash, but keeps changes that were already in the staging area. Useful for committing only part of the changes and stashing the rest.","git stash --keep-index","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> stash --keep-index\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":591,"title":592,"description":593,"snippets":594},"1b6757cd-3f57-431c-860b-66fba48391a2","↩️ Reset and Restore","Powerful commands to undo changes, revert commit history, and recover previous files or states. Includes git reset (with caution variations) and git restore (modern, safer command).",[595,601,607,613,619,625,631,637,643],{"id":596,"title":597,"description":598,"code":599,"language":10,"filename":32,"whenToUse":32,"highlighted":600},"97fda343-f30e-49a1-a541-bc7c08807ea6","Soft Reset (Undo Commit, Keep Staged)","Undoes the last commit, moving HEAD to the previous commit, but keeps the changes from the undone commit in the staging area. The working directory remains unchanged.","git reset --soft HEAD~1","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reset --soft HEAD~1\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":602,"title":603,"description":604,"code":605,"language":10,"filename":32,"whenToUse":32,"highlighted":606},"8fb50637-15f1-43ac-acb0-41b1be07017a","Mixed Reset (Undo Commit and Staging)","Undoes the last commit and moves the changes from the undone commit to the working directory (unstaged). This is the default behavior of `git reset` if no flag is specified. The staging area is cleared.","git reset --mixed HEAD~1","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reset --mixed HEAD~1\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":608,"title":609,"description":610,"code":611,"language":10,"filename":32,"whenToUse":32,"highlighted":612},"9c59b0e8-df1a-4535-a6c1-a0511e440b44","Hard Reset (DELETES EVERYTHING! Be careful!)","Undoes the last commit, discards all changes from the undone commit from the working directory and staging area. This action is irreversible and can result in loss of uncommitted work. Use with extreme caution!","git reset --hard HEAD~1","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reset --hard HEAD~1\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":614,"title":615,"description":616,"code":617,"language":10,"filename":32,"whenToUse":32,"highlighted":618},"552e723d-6afe-46e0-a59d-e735c7b98809","Restore File in Working Tree","Discards changes to `arquivo.txt` in the working directory, restoring it to the state of the last commit. It's a safer and more intuitive alternative to `git checkout -- arquivo.txt`.","git restore arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restore arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":620,"title":621,"description":622,"code":623,"language":10,"filename":32,"whenToUse":32,"highlighted":624},"ce9ce50c-ec80-4fe3-958f-1c1555951da3","Unstage File (Remove from Staging)","Removes `arquivo.txt` from the staging area, moving its changes back to the working directory (unstage). The file in the working directory remains unchanged.","git restore --staged arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restore --staged arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":626,"title":627,"description":628,"code":629,"language":10,"filename":32,"whenToUse":32,"highlighted":630},"8612e797-d3d3-4b6f-8da2-34464fad1ade","Restore File from Specific Commit","Restores `arquivo.txt` in the working directory and staging area to the state it was in at a specific commit (e.g., `HEAD~1`). Useful for recovering old file versions.","git restore --source=HEAD~1 arquivo.txt","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> restore --source=HEAD~1 arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":632,"title":633,"description":634,"code":635,"language":10,"filename":32,"whenToUse":32,"highlighted":636},"b5c8ce0f-9a61-4a28-8461-a218ac840ba5","View Reference History (Reflog)","Displays a log of all actions that modified the local repository's HEAD. It's a history of \"where HEAD has been,\" allowing recovery of commits that seem to have been lost after resets or rebases.","git reflog","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reflog\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":638,"title":639,"description":640,"code":641,"language":10,"filename":32,"whenToUse":32,"highlighted":642},"6efb7ad9-c197-47b0-a9c9-cd661fbe554a","Branch Reflog History","Displays the reflog for a specific branch (e.g., `main`), showing all times the `main` reference was updated.","git reflog show main","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reflog show main\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":644,"title":645,"description":646,"code":647,"language":10,"filename":32,"whenToUse":32,"highlighted":648},"4b7d4187-8e46-4998-8d83-5a435a45cead","Revert Using Reflog","Reverts HEAD (and the current branch) to a previous state recorded in the reflog (in this case, the second most recent state). It's the primary way to recover commits after an accidental `git reset --hard`.","git reset --hard HEAD@{2}","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> reset --hard HEAD@{2}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":650,"title":651,"description":652,"snippets":653},"14ae4f24-9bb4-4b5f-9706-18511e1665d3","☁️ Remote and Collaboration","Advanced commands for managing remote repositories, syncing branches, and collaborating effectively on Git projects.",[654,660,666,672,678,684,690,696,702,708,714,720,726,732],{"id":655,"title":656,"description":657,"code":658,"language":10,"filename":32,"whenToUse":32,"highlighted":659},"815eb88b-8049-4037-bfc0-bfc0cd57aa19","List Remotes (Verbose)","Lists the remote repositories configured for the project, showing their names and URLs (verbose). Useful for checking where you are pulling from and pushing to.","git remote -v","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> remote -v\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":661,"title":662,"description":663,"code":664,"language":10,"filename":32,"whenToUse":32,"highlighted":665},"dc193c09-b75d-4426-a796-cb0ec10713d1","Add New Remote","Adds a new remote repository named `upstream` with the specified URL. Common for setting up a remote for the original repository in a fork.","git remote add upstream https:\u002F\u002F...","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> remote add upstream https:\u002F\u002F...\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":667,"title":668,"description":669,"code":670,"language":10,"filename":32,"whenToUse":32,"highlighted":671},"38c91b9c-1d83-4b6f-8fa9-65567a3cfc04","Change Remote URL","Changes the URL of an existing remote repository (e.g., `origin`). Useful for updating a repository's location or switching between SSH and HTTPS.","git remote set-url origin https:\u002F\u002F...","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> remote set-url origin https:\u002F\u002F...\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":673,"title":674,"description":675,"code":676,"language":10,"filename":32,"whenToUse":32,"highlighted":677},"64072c39-49a1-4aba-bb64-7d02e7c35129","Remove Remote","Removes a remote repository named `upstream` from the local configuration. This does not affect the remote repository itself.","git remote remove upstream","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> remote remove upstream\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":679,"title":680,"description":681,"code":682,"language":10,"filename":32,"whenToUse":32,"highlighted":683},"4e34c47a-94ef-43ea-99dd-be2c9a03ff4a","Fetch All Remotes","Downloads objects and references from all configured remote repositories. Does not integrate changes into the working directory, only updates local remote references.","git fetch --all","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> fetch --all\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":685,"title":686,"description":687,"code":688,"language":10,"filename":32,"whenToUse":32,"highlighted":689},"981cdf40-f396-4f03-84f1-0f38407a86d1","Fetch with Prune (Remove Deleted Refs)","Removes local references to remote branches that were deleted in the remote repository. Helps keep the list of remote branches clean and up-to-date.","git fetch --prune","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> fetch --prune\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":691,"title":692,"description":693,"code":694,"language":10,"filename":32,"whenToUse":32,"highlighted":695},"3c86f920-f830-4df2-b3d8-b57093082934","Pull with Rebase","Downloads changes from the remote repository and then applies your local changes on top of them using rebase. This avoids unnecessary merge commits and maintains a linear history.","git pull --rebase","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pull --rebase\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":697,"title":698,"description":699,"code":700,"language":10,"filename":32,"whenToUse":32,"highlighted":701},"0376d66c-1dcd-401a-904e-ed7f8d5add25","Pull Only Fast-Forward","Downloads changes from the remote repository and attempts a fast-forward merge. If a fast-forward is not possible (i.e., there are local commits that are not ancestors of the remote), the command fails, requiring a manual merge or rebase.","git pull --ff-only","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> pull --ff-only\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":703,"title":704,"description":705,"code":706,"language":10,"filename":32,"whenToUse":32,"highlighted":707},"8e91e809-d293-4a36-af42-6024a8323d1d","Push and Set Upstream","Pushes the `feature-branch` to the remote repository `origin` and sets it as the upstream branch. This allows using `git pull` and `git push` without specifying the remote and branch later.","git push -u origin feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push -u origin feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":709,"title":710,"description":711,"code":712,"language":10,"filename":32,"whenToUse":32,"highlighted":713},"bd286d2b-3e09-4e7f-8eb5-580cca0b2734","Safe Force Push (with-lease)","Pushes changes to the remote repository, forcing history overwrite, but with a safeguard. It only works if the remote branch has not been updated by someone else since your last fetch, preventing accidental overwrites of others' work.","git push --force-with-lease","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push --force-with-lease\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":715,"title":716,"description":717,"code":718,"language":10,"filename":32,"whenToUse":32,"highlighted":719},"52fc5db5-ba3b-4c09-8695-7523862b3695","Delete Remote Branch (Push)","Deletes the `feature-branch` from the remote repository `origin`. The `:` before the local branch name indicates that you are pushing \"nothing\" to the remote branch, effectively deleting it.","git push origin :feature-branch","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push origin :feature-branch\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":721,"title":722,"description":723,"code":724,"language":10,"filename":32,"whenToUse":32,"highlighted":725},"5a369a9f-a694-4c5a-9513-d049866717a5","Push All Branches","Pushes all local branches to the remote repository `origin`. Useful to ensure all your branches are synchronized with the remote.","git push --all origin","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push --all origin\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":727,"title":728,"description":729,"code":730,"language":10,"filename":32,"whenToUse":32,"highlighted":731},"7963385a-e425-466c-9e56-1822dddc715c","Mirror Repository to Remote","Mirrors the local repository to the remote repository `origin`. This means that all local branches, tags, and references will be replicated to the remote, including the deletion of anything not present locally. Use with extreme caution, as it is a destructive operation.","git push --mirror origin","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push --mirror origin\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":733,"title":734,"description":735,"code":736,"language":10,"filename":32,"whenToUse":32,"highlighted":737},"582d16b3-a4f3-45f2-b072-b2026c76c565","Push with Tags and Follow-Tags","Pushes all local tags to the remote repository, and also pushes any commits referenced by those tags (if not already on the remote). `--follow-tags` ensures that annotated tags pointing to commits that haven't been pushed yet are also pushed.","git push --tags --follow-tags","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">git\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> push --tags --follow-tags\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",113,[740,746,752,759,765],{"id":741,"slug":742,"name":743,"colorHex":744,"iconName":32,"postCount":745},"0e2c1225-f78a-4c20-8c93-998ab9dc93b9","frontend","Frontend","#40484f",25,{"id":747,"slug":748,"name":749,"colorHex":750,"iconName":32,"postCount":751},"bc8df70e-b7fb-4d89-a80c-fd458d36d58c","code-development","Code & Development","#8b5cf6",23,{"id":753,"slug":754,"name":755,"colorHex":756,"iconName":757,"postCount":758},"550e8400-e29b-41d4-a716-446655440001","inteligencia-artificial","Artificial Intelligence","#6366f1","brain",14,{"id":760,"slug":761,"name":762,"colorHex":763,"iconName":32,"postCount":764},"ea63b69c-2eb4-4100-81f3-70ce52d33743","tech-news","Tech News","#e50606",4,{"id":766,"slug":767,"name":768,"colorHex":769,"iconName":770,"postCount":771},"550e8400-e29b-41d4-a716-446655440017","how-to-guides","How-To & Guides","#be123c","book-open",2]