[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686583-105":59,"doc-detail-686583-en":130,"doc-similar-686583":169},{"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","version-control-with-git-and-github-intro-to-version-control","VERSION CONTROL WITH GIT AND GITHUB - Intro to version control","","VERSION CONTROL WITH GIT AND GITHUB explains why reproducible research benefits from systematic tracking of changes in code, manuscripts, presentations, and data analysis. It motivates version control through questions about re-running analyses after time, highlights practices such as documenting work, generating figures and statistics from scripts, and keeping projects in version-controlled directories. The material reviews change-history problems in manual archiving, then introduces Git as a distributed open-source system, emphasizing audit trails, collaboration, recovery, and the ease of day-to-day usage.",{"@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/version-control-with-git-and-github-intro-to-version-control/686583/",{"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/version-control-with-git-and-github-intro-to-version-control/686583.png","ImageObject",300,407,{"name":92,"@type":93},"aboduw","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-22","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why is version control important for reproducible research?","Question",{"text":112,"@type":113},"It helps track changes across code and analysis projects, enabling others (and future you) to reproduce results. It also supports transparency, collaboration, and faster recovery from errors.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does the document list as benefits of using version control?",{"text":117,"@type":113},"It describes benefits such as easier collaboration, promoting transparency, facilitating reproducibility, faster error recovery, and the ability to restore project history.",{"name":119,"@type":110,"acceptedAnswer":120},"What is Git, according to the document?",{"text":121,"@type":113},"Git is an open-source distributed version control system developed by Linus Torvalds. It provides a complete audit trail, supports asynchronous work, and lets collaborators synchronize changes when possible.","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},686583,1794057215,{"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":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":29,"preview_urls":145},3985747862266,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","VERSION CONTROL WITH GIT AND GITHUB  \nMikhail Dozmorov  \nSummer 2018  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 1 / 59   \nReproducible Research  \nGood science is built on research that may be reproduced (or copied) by other researchers (and yourself!)  \n If another researchers read your report, could they reproduce your work?  \n Could you reproduce your own analysis after a year? two? Intro to version control: [https://rpubs.com/marschmi/ear523_Feb02](https://rpubs.com/marschmi/ear523_Feb02)  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 2 / 59   \nTips for Reproducible Research  \n Document all you do and use your code as the documentation  \n Make ﬁgures, tables, and statistics the result of scripts  \n Keep an entire project in a single directory that is version controlled  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 3 / 59   \nKeeping History of Changes  \nThe Lame Method  \n* Multiple dated ﬁles with largely the same content  \n* Periodically zipping ﬁles up into numbered/dated archives  \nJorge Cham, [http://www.phdcomics.com](http://www.phdcomics.com)  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 4 / 59   \nKeeping History of Changes  \nVersion control is the only reasonable way to keep track of changes in code, manuscripts, presentations, and data analysis projects  \n Backup of your entire project  \n Promotes transparency  \n Facilitates reproducibility  \n Faster recovery from errors  \n Easier collaborations  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 5 / 59   \nWhy Version Control?  \n Version control is not strictly necessary for reproducible research, and it’s admittedly some extra work (to learn and to use) in the short term, but the long term beneﬁts are enormous  \n People are more resistant to version control than to any other tool, because of the short-term eﬀort and the lack of recognition of the long-term beneﬁts  \n Imagine that some aspect of your code has stopped working at somepoint. You know it was working in the past, but it’s not working now . How easy is it to ﬁgure out where the problem was introduced?  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 6 / 59   \nWhat is Git?  \n Git is an open-source distributed version control system  \n Developed by Linus Torvalds (developer of Linux)  Distributed, distinct from centralized (subversion)  \n Authors can work asynchronously without being connected to a central server and synchronize their changes when possible  \n Complete audit trail of changes, including authorship  \n Freedom to explore new ideas without disturbing the main line of work  Collaborate with elegance – on any ﬁle at any time  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 7 / 59   \nAdvantages of version control:  \n It’s easy to set up  \n Every copy of a Git repository is a full backup of a project and its history  \n A few easy-to-remember commands are all you need for most  \nday-to-day version control tasks  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 8 / 59   \nGit lifecycle  \n[https://stackover](https://stackover)ﬂ[ow.com/questions/6143285/git-add-vs-push-vs-commit](ow.com/questions/6143285/git-add-vs-push-vs-commit)  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 9 / 59   \nSetting up Git  \nDownload and install Git, [https://git-scm.com/downloads](https://git-scm.com/downloads) .  \nDo not install GUI client  \n man git-not always good  \n git--help [\u003Ccommand>]  \n Mikhail Dozmorov VERSION CONTROL WITH GIT AND GITHUB Summer 2018 10 / 59","cbCaii8yHte5wFlR","https://ap.wps.com/l/cbCaii8yHte5wFlR","pdf",693616,59,"English","# Reproducible Research\n# Tips for Reproducible Research\n# Keeping History of Changes\n## The Lame Method\n# Why Version Control?\n# What is Git?\n# Advantages of Version Control\n# Git Lifecycle\n# Setting up Git","[{\"question\":\"Why is version control important for reproducible research?\",\"answer\":\"It helps track changes across code and analysis projects, enabling others (and future you) to reproduce results. It also supports transparency, collaboration, and faster recovery from errors.\"},{\"question\":\"What does the document list as benefits of using version control?\",\"answer\":\"It describes benefits such as easier collaboration, promoting transparency, facilitating reproducibility, faster error recovery, and the ability to restore project history.\"},{\"question\":\"What is Git, according to the document?\",\"answer\":\"Git is an open-source distributed version control system developed by Linus Torvalds. It provides a complete audit trail, supports asynchronous work, and lets collaborators synchronize changes when possible.\"}]","VERSION CONTROL WITH GIT AND GITHUB - Intro to version control | PDF",149,[146,150,154,158,162,165],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7bc52e599fbef1fb0d79eaeb7a2b9baf.webp",983,737,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/43b5044cf8f31c941dac5cfd356e6bb1.webp",982,736,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2076cd94792e8b65483fbbeb4d5e06c7.webp",981,735,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b3c620b1b4b74033803da133de58e320.webp",980,734,{"page_no":24,"url":163,"width":164,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5f2609d4f9a54b70fccd264e308bc933.webp",979,{"page_no":29,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/dca3d63f6d13aca28bd2740e2b3d86df.webp",978,733,{"list":170,"token":66},[171,177,183,189,195,201,207,213,219,225],{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":8,"category_name":30,"create_tm":176},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=1796120459&Signature=ORgymQqFINRazvd%2Bsg55vQ7CpeQ%3D","git-and-github-primer-read-online-free",1795908748,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":4,"category_name":30,"create_tm":182},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=1796120459&Signature=rt0g1n5mBlodfH3uSM9lvTexcjs%3D","version-control-and-collaboration-with-git-git-basics-workflow-and-terminology",1795908758,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":34,"category_name":30,"create_tm":188},693044,"Git and GitHub Primer - Introduction to Programming Systems COS 217","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005055419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=9iaN4wZ7YPvLbApecbbdAnblFX4%3D","git-and-github-primer-introduction-to-programming-systems-cos-217",1794246576,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":24,"category_name":30,"create_tm":194},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=1796120459&Signature=9ni4WRMWI8ztkywAPuHpkF4JDr4%3D","a-tutorial-for-git-and-github-learn-how-to-use-git-and-github",1793958634,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":29,"category_name":30,"create_tm":200},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=1796120459&Signature=%2BgUGTfKa726Oi0PD29scsOZ3kZI%3D","get-into-git-the-advanced-guide-to-git-commands",1794246593,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":29,"category_name":30,"create_tm":206},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=1796120459&Signature=LfGNkNiOYbqNL%2FMjK7XYwFn8EDY%3D","a-practical-guide-to-git-and-github-for-windows-users-from-beginner-to-expert-easy-step-by-step-exercises",1793958635,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":8,"category_name":30,"create_tm":212},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=1796120459&Signature=SkXF5MEG05ED57XIX9o6qqVULBM%3D","pro-git-version-21424-read-online-free",1795898482,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":24,"category_name":30,"create_tm":218},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=1796120459&Signature=m7D0CFG2c7xHFJBdXv20lObtIZg%3D","project-management-with-git-basics-introduction",1794246583,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":29,"category_name":30,"create_tm":224},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=1796120459&Signature=0XPhzmNSbIMRsb0eOsYZxKBfGPQ%3D","git-and-github-guide-version-control-basics-free-study-notes",1793958652,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":8,"category_name":30,"create_tm":230},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=1796120459&Signature=KuovrnC%2ByifYz%2F%2FXqX%2FUqbVt3Hg%3D","the-modern-git-github-guide-a-beginner-to-professional-quick-reference-2026-edition",1795908750]