[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-detail-571425-en":53,"doc-seo-571425-105":74},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":5,"data":54},{"doc_id":55,"user_id":56,"nickname":57,"user_avatar":58,"doc_module":9,"category_id":45,"category_name":46,"doc_title":59,"doc_description":60,"doc_content":61,"file_id":62,"file_url":63,"file_type":64,"file_size":65,"view_count":4,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":66,"language":67,"language_code":68,"site_id":69,"html_lang":68,"table_of_contents":70,"faqs":71,"seo_title":72,"seo_description":60,"update_tm":73,"read_time":9},571425,3985741905716,"Kyle","https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Git Cheat Sheet - Essential Git Commands","Git cheat sheet covering the most important, commonly used Git commands and workflows. Includes setup for user identity and command coloring, repository initialization and cloning, staging and snapshots with status, add, reset, diff, and commit, plus branching, merging, and commit history via log. Also explains inspecting objects, tracking file renames with rm/mv, ignoring patterns with .gitignore, sharing and updating through remotes with fetch/merge/push/pull, and rewriting history using rebase and reset, alongside temporary commits with stash.","Git is the free and open source distributed version control system that's responsible for everything GitHub  \nrelated that happens locally on your computer. This cheat sheet features the most important and commonly  \nused Git commands for easy reference.  \nINSTALLATION & GUIS  \nWith platform speciﬁc installersfor Git, GitHub also provides the ease of staying up-to-date with the latest releases ofthe command line tool while providing a graphical user interface for day-to-day interaction, review, and repository synchronization.  \nGitHub for Windows  \n[https://windows.github.com](https://windows.github.com)  \nGitHub for Mac  \n[https://mac.github.com](https://mac.github.com)  \nFor Linux and Solaris platforms, the latest release is available on the oﬃcial Git web site.  \nGit for All Platforms  \n[http://git-scm.com](http://git-scm.com)  \nSETUP  \nConﬁguring user information used across all local repositories  \ngit config --global [user.name](user.name) “[firstname lastname]”  \nset a name that is identiﬁable for credit when review version history  \n\n| git config --global [user.email](user.email) “[valid-email]”\u003Cbr>set an email address that will be associated with each history marker |\n| --- |\n| git config --global color.ui auto\u003Cbr>set automatic command line coloring for Git for easy reviewing |\n\nSETUP & INIT  \nConﬁguring user information, initializing and cloning repositories  \ngit init  \ninitialize an existing directory as a Git repository  \ngit clone [url]  \nretrieve an entire repository from a hosted location via URL  \nSTAGE & SNAPSHOT  \nWorking with snapshots and the Git staging area  \ngit status  \nshow modiﬁed ﬁles in working directory, staged for your next commit  \n| git add [file]\u003Cbr>add a ﬁle as it looks now to your next commit (stage) |\n| --- |\n| git reset [file]\u003Cbr>unstage a ﬁle while retaining the changes in working directory |\n| git diff\u003Cbr>diﬀof what is changed but not staged |\n| git diff --staged\u003Cbr>diﬀof what is staged but not yet committed |\n| git commit -m “[descriptive message]”\u003Cbr>commit your staged content as a new commit snapshot |\n\nBRANCH & MERGE  \nIsolating work in branches, changing context, and integrating changes  \ngit branch  \nlist your branches. a * will appear next to the currently active branch  \n\n| git branch [branch-name]\u003Cbr>create a new branch atthe current commit |\n| --- |\n| git checkout\u003Cbr>switch to another branch and check it out into your working directory |\n| git merge [branch]\u003Cbr>merge the speciﬁed branch’s history into the current one |\n| git log\u003Cbr>show all commits in the current branch’s history |\n\nINSPECT & COMPARE  \nExamining logs, diﬀs and object information  \ngit log  \nshow the commit history for the currently active branch  \n| git log branchB . .branchA\u003Cbr>show the commits on branchAthat are not on branchB |\n| --- |\n| git log --follow [file]\u003Cbr>show the commits that changed ﬁle, even across renames |\n| git diff branchB . . .branchA\u003Cbr>show the diﬀof what is in branchA that is not in branchB |\n| git show [SHA]\u003Cbr>show any object in Git in human-readable format |\n\nTRACKING PATH CHANGES  \nVersioning ﬁle removes and path changes  \ngit rm [file]  \ndelete the ﬁle from project and stage the removal for commit  \n\n| git mv [existing-path] [new-path]\u003Cbr>change an existing ﬁle path and stage the move |\n| --- |\n| git log --stat -M\u003Cbr>show all commit logs with indication of any paths that moved |\n\nIGNORING PATTERNS  \nPreventing unintentional staging or commiting of ﬁles  \nlogs/* .notes pattern*/  \n\n| Save a ﬁle with desired patterns as .gitignore with either direct string matches or wildcard globs. |\n| --- |\n| git config --global core .excludesfile [file]\u003Cbr>system wide ignore pattern for all local repositories |\n\nSHARE & UPDATE  \nRetrieving updates from another repository and updating local repos  \ngit remote add [alias] [url]  \nadd a git URL as an alias  \n| git fetch [alias]\u003Cbr>fetch down all the branches from that Git remote |\n| --- |\n| git merge [alias]/[branch]\u003Cbr>merge a remote branch into your ","cbCaiva14dzP3pFk","https://ap.wps.com/l/cbCaiva14dzP3pFk","pdf",100194,2,"English","en",105,"# INSTALLATION & GUIS\n# SETUP\n# SETUP & INIT\n# STAGE & SNAPSHOT\n# BRANCH & MERGE\n# INSPECT & COMPARE\n# TRACKING PATH CHANGES\n# IGNORING PATTERNS\n# SHARE & UPDATE\n# REWRITE HISTORY\n# TEMPORARY COMMITS\n# Education","[{\"question\":\"What commands are used to configure user identity in Git?\",\"answer\":\"Use git config --global user.name and git config --global user.email to set the name and email applied across local repositories.\"},{\"question\":\"How do you stage changes and create a commit snapshot?\",\"answer\":\"Run git status to review changes, git add [file] to stage, then git diff and git diff --staged to inspect differences before committing with git commit -m \\\"[descriptive message]\\\".\"},{\"question\":\"How can you manage temporary work when switching branches?\",\"answer\":\"Use git stash to save modified and staged changes. Then use git stash pop to restore from the top stash, or git stash list and git stash drop to view and discard stashes.\"}]","Git Cheat Sheet - Essential Git Commands | PDF",1791916935,{"code":4,"msg":75,"data":76},"ok",{"site_id":69,"language":68,"slug":77,"title":59,"keywords":78,"description":60,"schema_data":79,"social_meta":128,"head_meta":130,"extra_data":132,"updated_unix":73},"git-cheat-sheet-essential-git-commands","",{"@graph":80,"@context":127},[81,96,110],{"@type":82,"itemListElement":83},"BreadcrumbList",[84,88,90,93],{"item":85,"name":86,"@type":87,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":89,"name":10,"@type":87,"position":66},"https://docshare.wps.com/template/",{"item":91,"name":46,"@type":87,"position":92},"https://docshare.wps.com/template/paper-templates/",3,{"item":94,"name":59,"@type":87,"position":95},"https://docshare.wps.com/template/git-cheat-sheet-essential-git-commands/571425/",4,{"url":94,"name":59,"@type":97,"author":98,"headline":59,"publisher":100,"fileFormat":103,"inLanguage":68,"description":60,"dateModified":104,"datePublished":104,"encodingFormat":103,"isAccessibleForFree":105,"interactionStatistic":106},"DigitalDocument",{"name":57,"@type":99},"Person",{"url":85,"name":101,"@type":102},"DocShare","Organization","application/pdf","2026-10-13",true,{"@type":107,"interactionType":108,"userInteractionCount":4},"InteractionCounter",{"@type":109},"ViewAction",{"@type":111,"mainEntity":112},"FAQPage",[113,119,123],{"name":114,"@type":115,"acceptedAnswer":116},"What commands are used to configure user identity in Git?","Question",{"text":117,"@type":118},"Use git config --global user.name and git config --global user.email to set the name and email applied across local repositories.","Answer",{"name":120,"@type":115,"acceptedAnswer":121},"How do you stage changes and create a commit snapshot?",{"text":122,"@type":118},"Run git status to review changes, git add [file] to stage, then git diff and git diff --staged to inspect differences before committing with git commit -m \"[descriptive message]\".",{"name":124,"@type":115,"acceptedAnswer":125},"How can you manage temporary work when switching branches?",{"text":126,"@type":118},"Use git stash to save modified and staged changes. Then use git stash pop to restore from the top stash, or git stash list and git stash drop to view and discard stashes.","https://schema.org",{"og:url":94,"og:type":129,"og:title":59,"og:site_name":101,"og:description":60},"article",{"robots":131,"canonical":94},"index,follow",{"doc_id":55,"site_id":69}]