[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-693045-105":59,"doc-detail-693045-en":130,"doc-similar-693045":148},{"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":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","git-tutorial","Git Tutorial","","Git Tutorial explains source control management by guiding users through installing Git, opening Git Bash, and creating a local repository with git init. It covers configuring the default branch to main, setting user name and email for commits, verifying configuration values, and checking for the .git directory. It then teaches basic workflows such as viewing status, adding or removing files from staging, committing changes, and building small practice activities including creating a repository, writing a Python script, and running it in a terminal environment.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/git-tutorial/693045/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/git-tutorial/693045.png","ImageObject",300,407,{"name":92,"@type":93},"Asher","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How do I install Git and open Git Bash?","Question",{"text":112,"@type":113},"Install Git from the provided Git downloads link. On Windows, Git is not automatically installed, and Git Bash is installed alongside Git. Open Git Bash (or any terminal of your choice) afterward.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do I create and initialize a local Git repository?",{"text":117,"@type":113},"Navigate to the folder you want as your local repository, then run git init. To create and initialize a repository in a new subdirectory, use git init nameOfRepo. The repository is recognized by the presence of the .git directory.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the workflow for adding files and committing changes?",{"text":121,"@type":113},"Use git status to see tracked versus untracked files. Add a file to the staging area with git add fileName, or untrack it with git rm --cached fileName. Commit staged changes using git commit -m \"messageHere\".","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},693045,1794246577,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":39,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":46,"preview_page_count":8,"preview_urls":143},687197207639,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Git Tutorial  \nA Source Control Management (SCM), i.e. a tool, which allows you to manage and track changes to files over time, making it possible to revert to a file.  \n1. Installation: [https://git-scm.com/downloads](https://git-scm.com/downloads)  \na. Windows user: git is not automatically installed.  \nb. Mac user: git is typically already installed.  \nNote: when git is installed, git Bash is automatically installed.  \n2. Open Git Bash (or any terminal of your choice) .  \n3. Navigate to the folder (directory) that you want to set as your local repository. Ex. user/documents/winter2023/gitRepos  \n4. Create a repository:  \na. $git init //the command with no parameters initializes the current directory (i.e. folder) as the repository.  \nb. git init nameOfRepo //the command with parameter (fileName) creates and initializes a new repository (i.e. subdirectory/subfolder) in the current directory. You can name it whatever you please.  \n5. Execute the $git config commands below:  \na. $git config--global init.defaultBranch main //rename the name of the default branch in our repository to ‘main’ (a typical default name) .  \nb. $git branch-m main //set the name of the master branch; make sure you are in the subdirectory if you used $git init with parameters. (Notice how the name“(master)” gets changed to “(main)” on the right the first time you do this) .  \nc. $git config--global [user.name](user.name) “nameHere” //you need this for when you commit later  \nd. $git config--global [user.email](user.email) “emailHere” //note, executing this command resets your email if you already have one.  \ne. $ git config –global [user.email](user.email) “[your-username@users.noreply.github.com](your-username@users.noreply.github.com)”//specify a private email (this can also be changed directly through GitHub desktop)  \nYou can verify your name and email by entering:  \n$ git config--global [user.name](user.name)  \n$ git config--global [user.email](user.email)  \n6. Check that your repository has the .git directory in it (this is what makes the directory a fit repository and what tracks the changes of the files within the target directory) . You can check by navigating to the directory/folder through your terminal or file system (file explorer for windows or Finder for Mac); you might to need to unselect hidden files in your system to see it.  \n$ls-a //type this in your terminal to see directory  \nOr use your file explorer (windows) or Finder (Mac) to view directory from there  \n7. Quick Helper tip:  \na. $git command-h //displays help information about the config command in the terminal.  \nb. $git help command //opens up a manual (a more detailed description) that is hosted on your computer.  \n8. $git status //to show current branch and commits. It also allows you to see tracked vs. untracked files. It is a very useful command!  \nActivity 1: Create a git repo.  \n1. Create a directory you want to set as your repository in a location:  \n$cd ./documents  \nmkdir myFirstRepo  \ncd myFirstRepo \\#you should be in ~documents/myFirstRepo  \n\\#note: or ~documents/…/myFirstRepo if you specified subdirectories  \n2. Initialize the directory as a repository:  \n$git init  \n$ls-a \\#check that git exists  \n$git config--global init.defaultBranch main  \n$git branch-m main  \n3. Use config to add your name and email:  \n$git config--global [user.name](user.name) “nameHere”  \n$git config--global [user.email](user.email) “emailHere”  \n9. Create a new file in your repository:  \na. Directly in the terminal  \n[i. $ vim](i. $ vim myFirstFile.py)[ myFirstFile.py](i. $ vim myFirstFile.py)  \n[ii. $ nano](ii. $ nano myFirstFile.py)[ myFirstFile.py](ii. $ nano myFirstFile.py)  \n[iii. $ vi](iii. $ vi myFirstFile.py)[ myFirstFile.py](iii. $ vi myFirstFile.py)  \nor use a text editor of your choice and save it in your git repository (Avoid using Microsoft word!):  \niv. Visual Studios  \nv. Notepad  \nvi. Notepad++  \n\n| Basic Vim Commands\u003Cbr>enter INSERT mode = click the letter I get out of INS","cbCaid6knfoNW745","https://ap.wps.com/l/cbCaid6knfoNW745","pdf",310486,"English","# Installation and Setup\n## Install Git and open Git Bash\n## Create a local repository with git init\n# Configuration\n## Set default branch to main\n## Configure user.name and user.email\n## Verify configuration and check .git directory\n# Daily Workflow\n## View status and understand tracked vs untracked files\n## Add/remove files from staging\n## Commit changes\n# Practice Activities\n## Activity 1: Create a git repo\n## Activity 2: Create and run a Python script","[{\"question\":\"How do I install Git and open Git Bash?\",\"answer\":\"Install Git from the provided Git downloads link. On Windows, Git is not automatically installed, and Git Bash is installed alongside Git. Open Git Bash (or any terminal of your choice) afterward.\"},{\"question\":\"How do I create and initialize a local Git repository?\",\"answer\":\"Navigate to the folder you want as your local repository, then run git init. To create and initialize a repository in a new subdirectory, use git init nameOfRepo. The repository is recognized by the presence of the .git directory.\"},{\"question\":\"What is the workflow for adding files and committing changes?\",\"answer\":\"Use git status to see tracked versus untracked files. Add a file to the staging area with git add fileName, or untrack it with git rm --cached fileName. Commit staged changes using git commit -m \\\"messageHere\\\".\"}]","Git Tutorial | PDF",[144],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/453cb33bf30ab59086535870c82c79be.webp",983,1272,{"list":149,"token":66},[150,155,161,167,173,179,185,191,197,203],{"doc_id":151,"doc_title":65,"file_type":137,"home_preview_img_url":152,"slug":153,"view_count":34,"category_name":30,"create_tm":154},693046,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055420/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=xhrZctObEV5LV3DZ5hRWCb%2FuAY4%3D","git-tutorial-693046",1794246578,{"doc_id":156,"doc_title":157,"file_type":137,"home_preview_img_url":158,"slug":159,"view_count":8,"category_name":30,"create_tm":160},760727,"The Modern Git & GitHub Guide - A Beginner-to-Professional Quick Reference - 2026 Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044249572/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Lp%2FH%2BnNPLHhjOpTeP0EywSE3x0c%3D","the-modern-git-github-guide-a-beginner-to-professional-quick-reference-2026-edition",1795908750,{"doc_id":162,"doc_title":163,"file_type":137,"home_preview_img_url":164,"slug":165,"view_count":14,"category_name":30,"create_tm":166},760090,"Git-0 to Pro Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495433/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=WnZzd00RJ4462%2FRQK2c2KHbLj5Y%3D","git-0-to-pro-reference",1795898473,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":8,"category_name":30,"create_tm":172},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":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":29,"category_name":30,"create_tm":178},682034,"A Practical Guide to Git and GitHub for Windows Users - From Beginner to Expert - Easy Step-By-Step Exercises","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332552/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=a%2FEw5O9IzQPJpUMW2KnUFDFIiRE%3D","a-practical-guide-to-git-and-github-for-windows-users-from-beginner-to-expert-easy-step-by-step-exercises",1793958635,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":8,"category_name":30,"create_tm":184},760084,"A Lightweight API for Git - Version 0.1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=DPYPMjmFQn8hi%2BibxooknAgDXsI%3D","a-lightweight-api-for-git-version-010",1795898460,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":29,"category_name":30,"create_tm":190},682036,"Pragmatic Guide to Git - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332684/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=12TmGkH%2FdJ2M2ZUa7pcCamIp2xQ%3D","pragmatic-guide-to-git-read-online-free",1793958640,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":34,"category_name":30,"create_tm":196},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":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":8,"category_name":30,"create_tm":202},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":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":29,"category_name":30,"create_tm":208},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]