[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-693044-105":59,"doc-detail-693044-en":122,"doc-similar-693044":141},{"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":115,"head_meta":117,"extra_data":119,"updated_unix":121},105,"en","git-and-github-primer-introduction-to-programming-systems-cos-217","Git and GitHub Primer - Introduction to Programming Systems COS 217","","Version control and file sharing are introduced through Git and GitHub, with an emphasis on managing multiple code versions reliably and documenting changes for later recall. The document explains why large or collaborative projects benefit from version control systems and how Git repository concepts and GitHub hosting relate. It also guides COS 217 students through core setup steps: installing Git, configuring identity and preferences, and creating a GitHub account and token for command-line use.",{"@graph":69,"@context":114},[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-and-github-primer-introduction-to-programming-systems-cos-217/693044/",{"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-and-github-primer-introduction-to-programming-systems-cos-217/693044.png","ImageObject",300,407,{"name":92,"@type":93},"Theodore","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108],{"name":109,"@type":110,"acceptedAnswer":111},"What are the main setup tasks students must do in Git and GitHub for COS 217?","Question",{"text":112,"@type":113},"The document outlines three setup steps: install Git, configure Git by setting identity and preferences using terminal commands, and create a GitHub free account and a personal access token for command-line operations.","Answer","https://schema.org",{"og:url":83,"og:type":116,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":118,"canonical":83},"index,follow",{"doc_id":120,"site_id":62},693044,1794246576,{"code":4,"msg":5,"data":123},{"doc_id":120,"user_id":124,"nickname":92,"user_avatar":125,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":126,"file_id":127,"file_url":128,"file_type":129,"file_size":130,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":131,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":132,"faqs":133,"seo_title":134,"seo_description":67,"update_tm":121,"read_time":135,"preview_page_count":8,"preview_urls":136},7971461740886,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Princeton University  \nCOS 217: Introduction to Programming Systems Git and GitHub Primer  \nIntroduction  \nThis document describes how the concepts of version control and file sharing are implemented in Git and GitHub.  \nFor any project involving multiple developers, or even any suitably large one-developer project, it quickly becomes unwieldy and error-prone to maintain multiple stable and developmental versions of the codebase at once. Further, it requires great discipline to consistently document changes to the codebase in order to recall how things were before. To help with managing, and even automating, these necessities of large-scale software development, software engineers use version control systems.  \nGit is one mainstream example of a version control system. Using Git you create source code repositories, which are collections of your project data paired with metadata that tracks changes to that data over time. GitHub is an Internet service for hosting Git repositories (one of many!). GitHub is a popular choice for both industry and personal development, and our experience is that even ifwe were to suggest or encourage another service, most students would end up using GitHub anyway.  \nStarter code, data, and tools for COS 217 assignments are stored in repositories hosted on GitHub as part of the COS 217 GitHub organization. While it is possible for you to access these entirely via the web without actually using Git, doing so would defeat the educational purpose of maintaining the course’s assignment resources this way and would subject yourself to the challenges of code maintenance noted in the second paragraph of this document. You should use Git to access those resources, and it would be best if you consistently used Git yourself throughout your development on COS 217 assignments.  \nThis document describes a subset of Git and GitHub that may be sufficient for your work in COS 217. The first sections of this document describe setup steps that you should perform near the beginning of the semester. The remaining sections describe common use cases.  \nSetup Step 1: Installing Git  \nPerform this step one time only, as you complete Assignment 0.  \nInstall the Git program on the computer that you will use to do software development. The instructions for installing Git depend upon what kind of computer you will use. If your development computer is:  \n• An armlab computer, then you can skip this step. Git already is installed on armlab.  \n• Your own Mac computer (running OS X version 10.9 or above), then issue a git command in a terminal window. If Git isn't already installed, then OS X will prompt you to install the Xcode command-line tools. Installing the Xcode command-line tools also installs Git.  \n• Your own computer running Microsoft Windows, you may already have Git installed thanks to the introcs infrastructure from COS 126, which installs Git Bash. If this is not the case, then browse to [http://git](http://git)[scm.com/download/win](scm.com/download/win and the download and install will)[ and the download and install will](scm.com/download/win and the download and install will) start automatically.  \n• Your own computer running Linux, use your package manager to install Git ifit is not already installed.  \nSetup Step 2: Configuring Git  \nPerform this step one time only on each machine where you will be working, once you have installed Git.  \nConfigure Git to indicate your identity and preferences. To do that, issue these commands in a terminal window:  \n$ git config--global [user.name](user.name) \"yourname\"  \n$ git config--global [user.email](user.email) youremailaddress  \n$ git config--global color .ui auto  \n$ git config--global core .editor yourpreferrededitor  \nFor example, these commands (use your own name and email):  \n$ git config--global [user.name](user.name) \"Kevin Negy\"  \n$ git config--global [user.email](user.email) [kn3469@cs.princeton.edu](kn3469@cs.princeton.edu)[ ](kn3469@cs.princeton.edu)[$ git con","cbCair1ncRi1OVIt","https://ap.wps.com/l/cbCair1ncRi1OVIt","pdf",279345,"English","# Introduction\n# Setup Step 1: Installing Git\n# Setup Step 2: Configuring Git\n# Setup Step 3: Creating a GitHub Account\n# Common Use Cases","[{\"question\":\"What are the main setup tasks students must do in Git and GitHub for COS 217?\",\"answer\":\"The document outlines three setup steps: install Git, configure Git by setting identity and preferences using terminal commands, and create a GitHub free account and a personal access token for command-line operations.\"}]","Git and GitHub Primer - Introduction to Programming Systems COS 217 | PDF",25,[137],{"page_no":8,"url":138,"width":139,"height":140},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8e883b3618bdd398e68be86d4b7a1634.webp",983,1272,{"list":142,"token":66},[143,149,155,161,167,173,179,185,191,197],{"doc_id":144,"doc_title":145,"file_type":129,"home_preview_img_url":146,"slug":147,"view_count":52,"category_name":30,"create_tm":148},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,{"doc_id":150,"doc_title":151,"file_type":129,"home_preview_img_url":152,"slug":153,"view_count":29,"category_name":30,"create_tm":154},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":156,"doc_title":157,"file_type":129,"home_preview_img_url":158,"slug":159,"view_count":29,"category_name":30,"create_tm":160},681163,"Learn Ruby on Rails For Web Development - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998653527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=JDK%2B4vgteQ4x1VzPHGyPzSRMSa4%3D","learn-ruby-on-rails-for-web-development-introduction",1793940547,{"doc_id":162,"doc_title":163,"file_type":129,"home_preview_img_url":164,"slug":165,"view_count":24,"category_name":30,"create_tm":166},682033,"A Tutorial for Git and GitHub - Learn how to use Git and GitHub","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999332534/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=JQzwGByRDZ1O2dT2IcTnTfm%2FoII%3D","a-tutorial-for-git-and-github-learn-how-to-use-git-and-github",1793958634,{"doc_id":168,"doc_title":169,"file_type":129,"home_preview_img_url":170,"slug":171,"view_count":8,"category_name":30,"create_tm":172},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":174,"doc_title":175,"file_type":129,"home_preview_img_url":176,"slug":177,"view_count":8,"category_name":30,"create_tm":178},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=1796112059&Signature=%2BJeHIEMC0D7JcummWPlfFe4%2Fkms%3D","github-for-developers-training-manual-v10",1795908755,{"doc_id":180,"doc_title":181,"file_type":129,"home_preview_img_url":182,"slug":183,"view_count":34,"category_name":30,"create_tm":184},693045,"Git Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004257911/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=rrx2LaZjzzldgeZEQ8w8mhKRiu0%3D","git-tutorial",1794246577,{"doc_id":186,"doc_title":187,"file_type":129,"home_preview_img_url":188,"slug":189,"view_count":8,"category_name":30,"create_tm":190},760726,"Git and GitHub Primer - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044524182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=iRyLgQcmUWL4v%2FbO0%2F5PLBvdSiI%3D","git-and-github-primer-read-online-free",1795908748,{"doc_id":192,"doc_title":193,"file_type":129,"home_preview_img_url":194,"slug":195,"view_count":8,"category_name":30,"create_tm":196},760731,"Introduction to Git & GitHub - Course Preparation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044249626/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=aY%2BRcHbVBLJKgKKvbrcUX%2Faan18%3D","introduction-to-git-github-course-preparation",1795908756,{"doc_id":198,"doc_title":181,"file_type":129,"home_preview_img_url":199,"slug":200,"view_count":34,"category_name":30,"create_tm":201},693046,"https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055420/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=Dbm7y53TnpQb6AyoKOxRYpmYJ%2Fw%3D","git-tutorial-693046",1794246578]