[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572756-105":53,"doc-detail-572756-en":127},{"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":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":120,"head_meta":122,"extra_data":124,"updated_unix":126},105,"en","git-cheat-sheet-quick-reference-for-common-git-commands","Git Cheat Sheet - Quick Reference for Common Git Commands","","Git is an open source distributed version control system used to support GitHub activities on a laptop or desktop. The cheat sheet provides quick command-line reference for core workflows: installing Git on major platforms, configuring user identity and color output, creating and managing branches, initializing and cloning repositories, synchronizing with remotes using fetch/push/pull/merge, and inspecting history through log/diff/show. It also covers staging and committing changes, resetting or amending history with warnings, and includes GitHub Flow plus a concise glossary and training contact.",{"@graph":63,"@context":119},[64,80,102],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/git-cheat-sheet-quick-reference-for-common-git-commands/572756/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/git-cheat-sheet-quick-reference-for-common-git-commands/572756.png","ImageObject",442,249,{"name":88,"@type":89},"McQueen","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":101},"InteractionCounter",{"@type":100},"ViewAction",9,{"@type":103,"mainEntity":104},"FAQPage",[105,111,115],{"name":106,"@type":107,"acceptedAnswer":108},"How do you configure Git user information for local repositories?","Question",{"text":109,"@type":110},"Use git config --global with user.name and user.email to set the name and email attached to commits. You can also enable helpful command-line colorization with git config --global color.ui auto.","Answer",{"name":112,"@type":107,"acceptedAnswer":113},"What commands synchronize a local repository with the remote repository on GitHub?",{"text":114,"@type":110},"Use git fetch to download history from remote tracking branches. Use git push to upload local commits to GitHub, and git pull to update the current branch with new remote commits (a combination of fetch and merge).",{"name":116,"@type":107,"acceptedAnswer":117},"Which commands help review project history and changes?",{"text":118,"@type":110},"Use git log to list version history, git log --follow for file history including renames, git diff to compare branches, and git show to output metadata and content changes for a specific commit.","https://schema.org",{"og:url":78,"og:type":121,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":123,"canonical":78},"index,follow",{"doc_id":125,"site_id":56},572756,1792014837,{"code":4,"msg":5,"data":128},{"doc_id":125,"user_id":129,"nickname":88,"user_avatar":130,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":101,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":73,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":9},5909890329169,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Git is the open source distributed version control system that facilitates GitHub activities on your laptop or desktop. This cheat sheet summarizes commonly used Git command line instructions for quick reference.  \nGit Cheat Sheet  \nInstall  \nGitHub for Windows  \n[https://windows.github.com](https://windows.github.com)  \nGitHub for Mac  \n[https://mac.github.com](https://mac.github.com)  \nGit for All Platforms  \n[http://git-scm.com](http://git-scm.com)  \nGit distributions for Linux and POSIX systems are available on the official Git SCM web site.  \nConfigure tooling  \nConfigure user information for all local repositories  \n$ git config--global [user.name](user.name) \"[name]\"  \nSets the name you want attached to your commit transactions  \n\n| $ git config--global [user.email](user.email) \"[email address]\"\u003Cbr>Sets the email you want attached to your commit transactions |\n| --- |\n| $ git config--global color.ui auto |\n| Enables helpful colorization of command line output |\n| Branches\u003Cbr>Branches are an important part of working with Git. Any commits you make will be made on the branch you're currently“checked out” to. Use git status  to see which branch that is. |\n| $ git branch [branch-name] |\n| Creates a new branch |\n| $ git checkout [branch-name] |\n| Switches to the specified branch and updates the |\n| working directory |\n| $ git merge [branch] |\n| Combines the specified branch’s history into the |\n| current branch. This is usually done in pull requests, |\n| but is an important Git operation. |\n| $ git branch-d [branch-name] |\n| Deletes the specified branch |\n\nCreate repositories  \nWhen starting out with a new repository, you only need to do it once; either locally, then push to GitHub, or by cloning an existing repository.  \n$ git init  \nTurn an existing directory into a git repository  \n$ git clone [url]  \nClone (download) a repository that already exists on GitHub, including all of the files, branches, and commits  \nThe .gitignore file  \nSometimes it may be a good idea to exclude files from being tracked with Git. This is typically done in a special file named  .gitignore  . You can find helpful templates for  .gitignore  files at [github.com/github/gitignore](github.com/github/gitignore).  \nSynchronize changes  \nSynchronize your local repository with the remote repository [on GitHub.com](on GitHub.com)  \n$ git fetch  \nDownloads all history from the remote tracking branches  \n\n| $ git merge\u003Cbr>Combines remote tracking branch into current local branch |\n| --- |\n| $ git push\u003Cbr>Uploads all local branch commits to GitHub |\n| $ git pull |\n| Updates your current local working branch with all new |\n| commits from the corresponding remote branch on GitHub. |\n|  git pull  is a combination of  git fetch  and  git merge  |\n\nGit Cheat Sheet  \nMake changes  \nBrowse and inspect the evolution of project files  \n$ git log  \nLists version history for the current branch  \n\n| $ git log--follow [file]\u003Cbr>Lists version history for a file, including renames |\n| --- |\n| $ git diff [first-branch]...[second-branch]\u003Cbr>Shows content differences between two branches |\n| $ git show [commit]\u003Cbr>Outputs metadata and content changes of the specified commit |\n| $ git add [file] |\n| Snapshots the file in preparation for versioning |\n| $ git commit-m \"[descriptive message]\" |\n| Records file snapshots permanently in version history |\n\nRedo commits  \nErase mistakes and craft replacement history  \n$ git reset [commit]  \nUndoes all commits after [commit], preserving changes locally  \n$ git reset--hard [commit]  \nDiscards all history and changes back to the specified commit  \nCAUTION! Changing history can have nasty side effects. If you need to change commits that exist on GitHub (the remote), proceed with caution. If you need help, reach out at [github.community](github.community) or contact support.  \nGitHub Flow  \n‘master’ branch  \nCreate ‘feature’ branch from ‘master’  \nMerge ‘feature’ branch into ‘master’  \nCommit changes Submit Pull Request Discuss proposed","cbCaicDRcwf91h9B","https://ap.wps.com/l/cbCaicDRcwf91h9B","pdf",405266,"English","# Install\n## GitHub for Windows\n## GitHub for Mac\n## Git for All Platforms\n# Configure tooling\n# Branches\n# Create repositories\n# Synchronize changes\n# Make changes\n# Redo commits\n# GitHub Flow\n# Glossary\n# Training","[{\"question\":\"How do you configure Git user information for local repositories?\",\"answer\":\"Use git config --global with user.name and user.email to set the name and email attached to commits. You can also enable helpful command-line colorization with git config --global color.ui auto.\"},{\"question\":\"What commands synchronize a local repository with the remote repository on GitHub?\",\"answer\":\"Use git fetch to download history from remote tracking branches. Use git push to upload local commits to GitHub, and git pull to update the current branch with new remote commits (a combination of fetch and merge).\"},{\"question\":\"Which commands help review project history and changes?\",\"answer\":\"Use git log to list version history, git log --follow for file history including renames, git diff to compare branches, and git show to output metadata and content changes for a specific commit.\"}]","Git Cheat Sheet - Quick Reference for Common Git Commands | PDF",1791929145]