[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-760090-en":59,"doc-seo-760090-105":97,"doc-similar-760090":159},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":72,"language_code":73,"site_id":74,"html_lang":73,"table_of_contents":75,"faqs":76,"seo_title":77,"seo_description":66,"update_tm":78,"read_time":46,"preview_page_count":19,"preview_urls":79},760090,2336478945519,"Franzy","https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Git-0 to Pro Reference","A practical reference for using Git via the command line, covering core workflows from navigating folders and listing files to creating commits with messages, amending prior commits, and inspecting history with log and graph options. It explains staging vs working area, resetting and checking out previous commits by hash or branch, and restoring file or folder contents. It also guides configuration of commit author identity and Git aliases, use of .gitignore, repository concepts, and GitHub operations like adding remotes, pushing, branching, and cloning.","Git-0 to Pro Reference  \nBy: [supersimple.dev](supersimple.dev)  \nTutorial link: [https://www.youtube.com/watch?v=hrTQipWp6co](https://www.youtube.com/watch?v=hrTQipWp6co)  \nCommand Line (Terminal / PowerShell)  \nls  \ncd ~/Desktop/folder  \nList the ﬁles and folders in the current folder  \nChange the folder that the command line is running in  \nNote: git commands must be run inside the folder that contains all the code.  \nCreating Commits  \nIn Git, version = commit  \nVersion history = commit history  \ngit in it  \ngit status  \ngit add \u003Cfile |folder> git add file  \ngit add folder/  \ngit add .  \ngit commit -m \"message \"  \ngit commit -m \"message \" --amend  \ngit log git log --all  \ngit log --all - -graph  \nGit will start tracking all changes in the current folder Show all changes since the previous commit  \nPick changes to go into next commit  \nPick individual ﬁle  \nPick all ﬁles inside a folder (and subfolders) Pick all ﬁles (in folder command line is running in)  \nCreates a commit with a message attached  \nUpdate previous commit instead of creating new one  \nView the commit history  \nShow all commits (not just current branch) Show branching visually in the command line  \nConﬁgure Name & Email for Commits  \ngit config --global [user.name](user.name) \"Your Name\"  \ngit config --global [user.email](user.email) \"[email@example.com](email@example.com) \"  \nWorking Area = contains changes start in the working area  \nStaging Area = contains changes that will go into the next commit  \ngit add .  \ngit commit -m \"message \"  \ngit reset \u003Cfile |folder> git reset file  \ngit reset folder/  \ngit reset .  \ngit checkout - - \u003Cfile |folder> git checkout - - file  \ngit checkout - - folder/  \ngit checkout - - .  \nworking => staging  \nstaging => commit history  \nstaging => working  \nworking => remove the changes  \nViewing Previous Commits  \ngit checkout \u003C commit_hash|branch_name> View a previous commit  \nmaster = branch name  \n1. You can git checkout branch 2. Always points to  latest commit on the branch.  \nHEAD = indicates which commit you are currently viewing  \nRestoring to a Previous Commit  \ngit checkout \u003Chash|branch> \u003Cfile |folder> Restore the contents of ﬁles back to a  \nprevious commit  \ngit checkout \u003Chash|branch> file Restore a ﬁle  \ngit checkout \u003Chash|branch> folder/ Restore all ﬁles in folder (& subfolders) git checkout \u003Chash|branch> . Restore all ﬁles in project  \nOther Features of Git  \ngit config - -global alias .shortcut \u003C command> Creates an alias (a shortcut)  \ngit config - -global alias .s \" status \" git s = git status  \n.gitignore  \nrm -rf .git  \nTell git which ﬁles/folders it SHOULD NOT track Remove git from project  \nGitHub  \nRepository = a folder containing code where any changes to the code are tracked by git.(To create a repository, we create a new folder on our computer, and then run git init)  \nGitHub = a service that lets us save our git repositories online. It also helps us:  \n- backup our code in case we delete it on our computer  \n- see the history of our code changes more easily  \n- alternatives include Bitbucket and GitLab  \nLocal repository = a git repository saved on our computer  \nRemote repository = a git repository saved online (for example on GitHub)  \nUploading Code to GitHub  \ngit remote add \u003C remote_name> \u003C url> Link a local repository to a remote repository and  \ngive a name for this link  \ngit remote add origin [https://github.com/SuperSimpleDev/repository1](https://github.com/SuperSimpleDev/repository1)  \n^  \nThe above command links a local repository to a GitHub repository (located at the url [https://github.com/SuperSimpleDev/repository1](https://github.com/SuperSimpleDev/repository1)) and gives it a name \"origin\"  \ngit remote git remote -v  \ngit remote remove \u003C remote_name> git remote remove origin  \nList all remote repositories that are linked  \nList all remote repositories (but with more detail)  \nRemoves a link to a remote repository  \nRemoves the link to the remote repository named  \n\"origin\"  \ngit confi","cbCainydINuWXPsr","https://ap.wps.com/l/cbCainydINuWXPsr","pdf",2281316,"English","en",105,"# Command Line (Terminal / PowerShell)\n## Creating Commits\n## Conﬁgure Name & Email for Commits\n## Viewing Previous Commits\n## Restoring to a Previous Commit\n## Other Features of Git\n## GitHub\n## Uploading Code to GitHub\n## Downloading Code from GitHub\n## Branching","[{\"question\":\"What does git status, git add, and git commit do?\",\"answer\":\"git status shows changes in the current working area. git add stages files/folders so they go into the next commit, and git commit creates a commit with a message.\"},{\"question\":\"How do you view and interpret commit history with git log?\",\"answer\":\"Use git log to view commits, and git log --all - -graph to show all commits and display branching visually.\"},{\"question\":\"How do you connect a local repository to a GitHub remote and push code?\",\"answer\":\"Add a remote with git remote add \\u003cremote_name\\u003e \\u003curl\\u003e, then upload with git push \\u003cremote_name\\u003e \\u003cbranch\\u003e. You can also use --set-upstream to make future pushes easier.\"}]","Git-0 to Pro Reference | PDF",1795898473,[80,84,88,93],{"page_no":8,"url":81,"width":82,"height":83},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/93e1775c3af2f5dbe402afc1b61d457c.webp",983,1390,{"page_no":14,"url":85,"width":86,"height":87},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/926a688648e25fa2edb418bd2757f05f.webp",982,1388,{"page_no":89,"url":90,"width":91,"height":92},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/059343d3c5e38d7af08eb42768bed09f.webp",981,1387,{"page_no":19,"url":94,"width":95,"height":96},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/f3ecd49ffafd340cb21bb0f6b47537e4.webp",980,1385,{"code":4,"msg":98,"data":99},"ok",{"site_id":74,"language":73,"slug":100,"title":65,"keywords":101,"description":66,"schema_data":102,"social_meta":154,"head_meta":156,"extra_data":158,"updated_unix":78},"git-0-to-pro-reference","",{"@graph":103,"@context":153},[104,117,136],{"@type":105,"itemListElement":106},"BreadcrumbList",[107,111,113,115],{"item":108,"name":109,"@type":110,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":112,"name":9,"@type":110,"position":14},"https://docshare.wps.com/document/",{"item":114,"name":30,"@type":110,"position":89},"https://docshare.wps.com/document/technology/",{"item":116,"name":65,"@type":110,"position":19},"https://docshare.wps.com/document/git-0-to-pro-reference/760090/",{"url":116,"name":65,"@type":118,"image":119,"author":124,"headline":65,"publisher":126,"fileFormat":129,"inLanguage":73,"description":66,"dateModified":130,"datePublished":130,"encodingFormat":129,"isAccessibleForFree":131,"interactionStatistic":132},"DigitalDocument",{"url":120,"@type":121,"width":122,"height":123},"https://docshare.wps.com/thumbnails/git-0-to-pro-reference/760090.png","ImageObject",300,407,{"name":63,"@type":125},"Person",{"url":108,"name":127,"@type":128},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":133,"interactionType":134,"userInteractionCount":14},"InteractionCounter",{"@type":135},"ViewAction",{"@type":137,"mainEntity":138},"FAQPage",[139,145,149],{"name":140,"@type":141,"acceptedAnswer":142},"What does git status, git add, and git commit do?","Question",{"text":143,"@type":144},"git status shows changes in the current working area. git add stages files/folders so they go into the next commit, and git commit creates a commit with a message.","Answer",{"name":146,"@type":141,"acceptedAnswer":147},"How do you view and interpret commit history with git log?",{"text":148,"@type":144},"Use git log to view commits, and git log --all - -graph to show all commits and display branching visually.",{"name":150,"@type":141,"acceptedAnswer":151},"How do you connect a local repository to a GitHub remote and push code?",{"text":152,"@type":144},"Add a remote with git remote add \u003Cremote_name> \u003Curl>, then upload with git push \u003Cremote_name> \u003Cbranch>. You can also use --set-upstream to make future pushes easier.","https://schema.org",{"og:url":116,"og:type":155,"og:title":65,"og:site_name":127,"og:description":66},"article",{"robots":157,"canonical":116},"index,follow",{"doc_id":61,"site_id":74},{"list":160,"token":101},[161,167,172,178,184,190,196,202,208,214],{"doc_id":162,"doc_title":163,"file_type":70,"home_preview_img_url":164,"slug":165,"view_count":8,"category_name":30,"create_tm":166},760093,"Pro Git - Version 2.1.424 - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495470/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=gy1sruyEAZOIPgJ41%2Ffdpi5RsSg%3D","pro-git-version-21424-read-online-free",1795898482,{"doc_id":168,"doc_title":169,"file_type":70,"home_preview_img_url":170,"slug":171,"view_count":8,"category_name":30,"create_tm":78},760091,"Git - A Practical, Beginner-Friendly Guide to Version Control - From Your First Commit to Branching, Merging & GitHub","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495447/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=X9CIonpLueF6cr9KQXkXkw%2BJuRs%3D","git-a-practical-beginner-friendly-guide-to-version-control-from-your-first-commit-to-branching-merging-github",{"doc_id":173,"doc_title":174,"file_type":70,"home_preview_img_url":175,"slug":176,"view_count":8,"category_name":30,"create_tm":177},760730,"GitHub for Developers Training Manual - v1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044249605/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=icakjN1Sv%2FVY2TPlyai14nxJK0Q%3D","github-for-developers-training-manual-v10",1795908755,{"doc_id":179,"doc_title":180,"file_type":70,"home_preview_img_url":181,"slug":182,"view_count":8,"category_name":30,"create_tm":183},760087,"GitFourchette - User's Guide - July 2 2026 version 1.9","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495428/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2FKkZWcVZvLhh0dBPM9SzbfK%2FT3k%3D","gitfourchette-users-guide-july-2-2026-version-19",1795898466,{"doc_id":185,"doc_title":186,"file_type":70,"home_preview_img_url":187,"slug":188,"view_count":29,"category_name":30,"create_tm":189},693052,"Get into Git! - The Advanced Guide to Git Commands","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004257923/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=qD6PY49tj%2Fj3fzs5gtLwfDSNlO0%3D","get-into-git-the-advanced-guide-to-git-commands",1794246593,{"doc_id":191,"doc_title":192,"file_type":70,"home_preview_img_url":193,"slug":194,"view_count":29,"category_name":30,"create_tm":195},682042,"Git and GitHub Guide - Version control basics - Free study notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332745/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Z6mxax9ilH7q8we6xEFAZ5sRSPs%3D","git-and-github-guide-version-control-basics-free-study-notes",1793958652,{"doc_id":197,"doc_title":198,"file_type":70,"home_preview_img_url":199,"slug":200,"view_count":29,"category_name":30,"create_tm":201},657566,"Git and GitHub Terms and Diagrams - Presenter Steve Baskauf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975111111/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=o01bZxE6b6A7b6uwIWKTKmQctQ8%3D","git-and-github-terms-and-diagrams-presenter-steve-baskauf",1792983193,{"doc_id":203,"doc_title":204,"file_type":70,"home_preview_img_url":205,"slug":206,"view_count":34,"category_name":30,"create_tm":207},682038,"Git Guide - Git collaboration and core commands","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332702/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=YvY2bV0IAVezGZmNoUP76LxbAKk%3D","git-guide-git-collaboration-and-core-commands",1793958643,{"doc_id":209,"doc_title":210,"file_type":70,"home_preview_img_url":211,"slug":212,"view_count":24,"category_name":30,"create_tm":213},693048,"Project Management with Git - Basics - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055460/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=WAn%2FPH1Ya%2Bixq2nF%2FbSSO3UaZKg%3D","project-management-with-git-basics-introduction",1794246583,{"doc_id":215,"doc_title":216,"file_type":70,"home_preview_img_url":217,"slug":218,"view_count":19,"category_name":30,"create_tm":219},693049,"Beej’s Guide to Git - Brian “Beej Jorgensen” Hall v1.2.10","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055466/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=wyyXYE4MVCldpkk%2BY6gkFNJI1YE%3D","beejs-guide-to-git-brian-beej-jorgensen-hall-v1210",1794246586]