[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760091-105":59,"doc-detail-760091-en":129,"doc-similar-760091":160},{"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":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","git-a-practical-beginner-friendly-guide-to-version-control-from-your-first-commit-to-branching-merging-github","Git - A Practical, Beginner-Friendly Guide to Version Control - From Your First Commit to Branching, Merging & GitHub","","A Practical, Beginner-Friendly Guide to Version Control walks through essential Git concepts from the first commit to branching, merging, and collaboration workflows. It explains what a repository is, the file states (modified, staged, committed), and the setup required for correct author identity. Clear, step-by-step commands cover initializing projects, staging changes, committing snapshots with messages, and navigating history and branches. The lecture-style modules also introduce undoing changes, .gitignore usage, and practical GitHub remotes and teamwork patterns.",{"@graph":69,"@context":121},[70,84,104],{"@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-a-practical-beginner-friendly-guide-to-version-control-from-your-first-commit-to-branching-merging-github/760091/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/git-a-practical-beginner-friendly-guide-to-version-control-from-your-first-commit-to-branching-merging-github/760091.png","ImageObject",300,407,{"name":92,"@type":93},"Kurz","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What is Git used for in software development?","Question",{"text":111,"@type":112},"Git is a version-control system that records project history so you can save progress, return to earlier versions, and collaborate safely with others.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"What do the file states Modified, Staged, and Committed mean?",{"text":116,"@type":112},"Modified means the file changed but isn’t marked for saving; Staged means the changes are prepared for the next commit; Committed means the snapshot is stored in the project’s history.",{"name":118,"@type":109,"acceptedAnswer":119},"Why must you configure user.name and user.email before your first commit?",{"text":120,"@type":112},"Every commit is stamped with your signature; without a configured name and email, Git refuses to create a commit or may record the wrong identity.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},760091,1795898473,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"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":128,"read_time":36,"preview_page_count":19,"preview_urls":143},2336478945635,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","GIT  \nLecture Notes  \nA Practical, Beginner-Friendly Guide to Version Control  \nFrom your first commit to branching, merging & GitHub  \nPrepared by  \nFaraz Hosseini  \nJuly 2026  \nTable of Contents  \nModule 1-Git Fundamentals ............................................................................................................3  \nModule 2-Branches .........................................................................................................................5  \nModule 3-Merging & Conflicts ..........................................................................................................7  \nModule 4-Undoing Changes & History .............................................................................................8  \nModule 5- Ignoring Files with .gitignore .......................................................................................... 10  \nModule 6-GitHub, Remotes & Cloning ........................................................................................... 11  \nModule 7-Team Collaboration ....................................................................................................... 13  \nCommand Reference ...................................................................................................................... 14  \nWrap-Up: The Whole Picture ........................................................................................................... 16  \nModule 1-Git Fundamentals  \nGit is a version-control system: it records the history of your project so you can save your progress, go back to an earlier version, and work safely alongside other people. This module explains what a repository is, the states a file moves through, the one-time setup Git needs, and the everyday save loop of stage and commit.  \nWhat Is Git?  \nWith Git you can save the changes in your code at any point, move back to a previous version whenever you need to, and-by putting the project on a service like GitHub-make it accessible to your teammates. In short, it is a time machine and a collaboration tool rolled into one. Three commands appear again and again, and the rest of this module unpacks them:  \n\n| Command | What it does |\n| --- | --- |\n| git init | Create a repository (start tracking a project) .\u003Cbr>|\n| git commit |  Create a commit (save a snapshot of your changes) .  |\n| git checkout |  Move to a previous commit or another branch.  |\n\nRepositories & File States  \nA repository is simply a project that Git is watching. The moment a project contains a hidden.git folder, it is a repository, and Git begins tracking every file inside it. Within a repository each file moves through a few states:  \n• Modified-you have changed the file but not yet marked it to be saved.  \n• Staged-you have marked the changed file to go into the next commit.  \n• Committed-the change is safely stored in the project's history.  \nEditors that show Git status put a small label next to each file name. A U means untracked-a brand-new file Git has not saved yet-and files you have edited show up in a Changes area. To save work you first move a file from Changes into the Staged area, then create a commit from what is staged.  \nNote Think of staging as a loading dock: you gather exactly the changes you want in this snapshot onto the dock (staging), then the commit ships them into history. This two-step design lets you commit some changes now and leave others for later.  \nSetup & Configuration  \nBefore your very first commit, Git needs to know who you are , because every commit is stamped with a signature-your name and email. You set this once, globally, so it applies to all your projects:  \ngit config --global [user.name](user.name) \"Faraz Hosseini\" \\# set your username  \n\n| | git config --global [user.email](user.email) \"[faraz@example.com](faraz@example.com)\" \\# set your email\u003Cbr>git config --list \\# view all settings |\n| --- | --- |\n| \u003Cbr>Watch out Do this before you start committing. Without a configured name and ema","cbCaidWYYp8Wd1GT","https://ap.wps.com/l/cbCaidWYYp8Wd1GT","pdf",268150,16,"English","# Module 1-Git Fundamentals\n## What Is Git?\n## Repositories & File States\n## Setup & Configuration\n## Starting a Project & the Basic Workflow\n# Module 2-Branches\n## The Working Tree, Commits & Branches","[{\"question\":\"What is Git used for in software development?\",\"answer\":\"Git is a version-control system that records project history so you can save progress, return to earlier versions, and collaborate safely with others.\"},{\"question\":\"What do the file states Modified, Staged, and Committed mean?\",\"answer\":\"Modified means the file changed but isn’t marked for saving; Staged means the changes are prepared for the next commit; Committed means the snapshot is stored in the project’s history.\"},{\"question\":\"Why must you configure user.name and user.email before your first commit?\",\"answer\":\"Every commit is stamped with your signature; without a configured name and email, Git refuses to create a commit or may record the wrong identity.\"}]","Git - A Practical, Beginner-Friendly Guide to Version Control - From Your First Commit to Branching, Merging & GitHub | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/1e68ba19cf01650ad804f0e802774f9c.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/ede874d9e200516498d0550c9792471a.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c811933b892a16e1d14e2cd820119569.webp",981,1269,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/e399257d328c11483a543172432facc7.webp",980,1268,{"list":161,"token":66},[162,168,173,179,185,191,197,203,209,215],{"doc_id":163,"doc_title":164,"file_type":136,"home_preview_img_url":165,"slug":166,"view_count":8,"category_name":30,"create_tm":167},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=1796112059&Signature=HlknxJUdH1cbcDilNkhTBjCdwQk%3D","pro-git-version-21424-read-online-free",1795898482,{"doc_id":169,"doc_title":170,"file_type":136,"home_preview_img_url":171,"slug":172,"view_count":14,"category_name":30,"create_tm":128},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=1796112059&Signature=RaEUYw2y%2Fl0sNO1G3PPp7IT8pDU%3D","git-0-to-pro-reference",{"doc_id":174,"doc_title":175,"file_type":136,"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=1796112059&Signature=EFcxn9EvuPuEsxTNJeYimyKfDXU%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":136,"home_preview_img_url":182,"slug":183,"view_count":8,"category_name":30,"create_tm":184},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=1796112059&Signature=gIJMEU9c0l1KIQG2P%2FKEAY6CfyM%3D","the-modern-git-github-guide-a-beginner-to-professional-quick-reference-2026-edition",1795908750,{"doc_id":186,"doc_title":187,"file_type":136,"home_preview_img_url":188,"slug":189,"view_count":29,"category_name":30,"create_tm":190},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=1796112059&Signature=glJhFxxHd%2BBSwDRq2AOpIigu85A%3D","get-into-git-the-advanced-guide-to-git-commands",1794246593,{"doc_id":192,"doc_title":193,"file_type":136,"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=1796112059&Signature=YO8tsQdWirqM5pADorHPVclzxD8%3D","git-guide-git-collaboration-and-core-commands",1793958643,{"doc_id":198,"doc_title":199,"file_type":136,"home_preview_img_url":200,"slug":201,"view_count":19,"category_name":30,"create_tm":202},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=1796112059&Signature=M2%2BzSP4pmwVQ3fwmqR2XTksHWwA%3D","beejs-guide-to-git-brian-beej-jorgensen-hall-v1210",1794246586,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":4,"category_name":30,"create_tm":208},760732,"Version-Control-and-collaboration-with-Git - Git basics, workflow, and terminology","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044524234/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=Pw2KddlJ6lhc9RahofrAbCPrBo4%3D","version-control-and-collaboration-with-git-git-basics-workflow-and-terminology",1795908758,{"doc_id":210,"doc_title":211,"file_type":136,"home_preview_img_url":212,"slug":213,"view_count":29,"category_name":30,"create_tm":214},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=1796112059&Signature=8slzRkSOygM0bo5AaCeb5eAI1Cg%3D","pragmatic-guide-to-git-read-online-free",1793958640,{"doc_id":216,"doc_title":217,"file_type":136,"home_preview_img_url":218,"slug":219,"view_count":52,"category_name":30,"create_tm":220},693047,"Beginner’s Guide to using Git","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=PMJCl2yJSptKiZ%2BjJ35RNhJZVwk%3D","beginners-guide-to-using-git",1794246579]