[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-760089-105":59,"doc-detail-760089-en":129,"doc-similar-760089":163},{"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","cs6-practical-system-skills-fall-2019-more-on-git-and-rebasing","CS6 Practical System Skills - Fall 2019 - More on Git and Rebasing","","This educational lecture document from the CS6 Practical System Skills course at Brown University, taught by Leonhard Spiegelberg in the Fall 2019 semester, explores advanced version control concepts using Git, specifically focusing on merging versus rebasing branches. The course material outlines best practices for managing master and feature branches, detailing how to execute git rebase operations, follow the golden rules of rebasing to prevent repository corruption, and effectively integrate development workflows. Through structured diagrams and clear syntax guidelines, students learn the technical nuances of branch integration, command usage, and collaborative software development strategies.",{"@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/cs6-practical-system-skills-fall-2019-more-on-git-and-rebasing/760089/",{"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/cs6-practical-system-skills-fall-2019-more-on-git-and-rebasing/760089.png","ImageObject",300,407,{"name":92,"@type":93},"Jasmine","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 the recommended purpose of the master branch in a Git repository?","Question",{"text":111,"@type":112},"The master branch should be used to store releasable versions of code and assets that work without errors, following the principle of never breaking the master.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How do you rebase a feature branch onto the master branch?",{"text":116,"@type":112},"You can rebase by switching to the feature branch and running the command 'git rebase master', or by using the general syntax 'git rebase master feature'.",{"name":118,"@type":109,"acceptedAnswer":119},"What is the golden rule of rebasing regarding master and feature branches?",{"text":120,"@type":112},"You should never rebase the master branch onto a feature branch; instead, you should only rebase a feature branch onto the master or another feature branch.","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},760089,1795898470,{"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":143,"preview_page_count":24,"preview_urls":144},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","CS6 Practical System Skills  \nFall 2019 edition  \nLeonhard Spiegelberg [lspiegel@cs.brown.edu](lspiegel@cs.brown.edu)  \nLast lecture: Version Control Systems ⇒ git ⇒ 3 areas  \n⇒ creating commits, checking out old commits ⇒ working with remotes  \n⇒ pull/push  \n⇒ working with branches  \n⇒ merging branches via git merge  \n15 More on Git  \nCS6 Practical System Skills Fall 2019  \nLeonhard [Spiegelberg](Spiegelberg lspiegel@cs.brown.edu)[ lspiegel@cs.brown.edu](Spiegelberg lspiegel@cs.brown.edu)  \n⇒ Typically, there's a master branch in the repo  \n→ don't use it for development, rather store \"releasable\"version of your code/assets on it  \n→ content on the master branch should work, i.e . no errors .  \n⇒ DON'T BREAK THE MASTER!⇒ In a couple slides: Typical git workﬂows.  \nRebasing  \n15.01 git merge vs. git rebase   \n⇒ To join branches, git rebase is an alternative to git merge  \n⇒ If you don't know how to rebase properly, things can go wrong badly  \nRecap:  \nrebasing  \nmerging  \n⇒ to rebase a branch on another, run git rebase. Assuming you're on branch feature, then you can rebase  \nonto the master via: git rebase master  \n\n| |  |\n| --- | --- |\n| branch on which to base on |  |\n\nrebasing feature on master general syntax:  \ngit rebase master feature (will checkout feature)  \n15.03 Golden rule of rebasing   \n⇒ NEVER, NEVER, NEVER rebase the master onto a feature branch.→ Only rebase feature on master OR  \n→ featureA on featureB  \nI.e . , don't run the following commands:  \n~~ git checkout master && git rebase feature   git rebase feature master ~~","cbCaiet1uiQJQWwZ","https://ap.wps.com/l/cbCaiet1uiQJQWwZ","pdf",1789504,46,"English","# More on Git\n## Git Merge vs. Git Rebase\n## Golden Rule of Rebasing","[{\"question\":\"What is the recommended purpose of the master branch in a Git repository?\",\"answer\":\"The master branch should be used to store releasable versions of code and assets that work without errors, following the principle of never breaking the master.\"},{\"question\":\"How do you rebase a feature branch onto the master branch?\",\"answer\":\"You can rebase by switching to the feature branch and running the command 'git rebase master', or by using the general syntax 'git rebase master feature'.\"},{\"question\":\"What is the golden rule of rebasing regarding master and feature branches?\",\"answer\":\"You should never rebase the master branch onto a feature branch; instead, you should only rebase a feature branch onto the master or another feature branch.\"}]","CS6 Practical System Skills - Fall 2019 - More on Git and Rebasing | PDF",116,[145,149,152,156,159],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/69e745d3bc2085bfb96e9a2872684e7f.webp",983,552,{"page_no":14,"url":150,"width":151,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/c0d7c8388a4c4b2df9eb39a966b77aa6.webp",982,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/6429a4038333be562b95234eb307dda0.webp",981,551,{"page_no":19,"url":157,"width":158,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/bd00323af8ce6f85bb6b5c7b69df3923.webp",980,{"page_no":24,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/202ec9e7db7a96eefe513c87f4c6ced8.webp",979,550,{"list":164,"token":66},[165,171,177,183,189,195,201,207,213,219],{"doc_id":166,"doc_title":167,"file_type":136,"home_preview_img_url":168,"slug":169,"view_count":34,"category_name":30,"create_tm":170},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=1796111399&Signature=utzdu4bkxq7kjCyyfzVDALVnXjU%3D","git-guide-git-collaboration-and-core-commands",1793958643,{"doc_id":172,"doc_title":173,"file_type":136,"home_preview_img_url":174,"slug":175,"view_count":52,"category_name":30,"create_tm":176},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=1796111399&Signature=%2BTcJP9%2BdMXB9lwRlLn6nXudiOPs%3D","beginners-guide-to-using-git",1794246579,{"doc_id":178,"doc_title":179,"file_type":136,"home_preview_img_url":180,"slug":181,"view_count":8,"category_name":30,"create_tm":182},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=1796111399&Signature=2i7vVca6rGWN1Q2GXZakVNKrWkY%3D","github-for-developers-training-manual-v10",1795908755,{"doc_id":184,"doc_title":185,"file_type":136,"home_preview_img_url":186,"slug":187,"view_count":29,"category_name":30,"create_tm":188},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=1796111399&Signature=mDBaQDX0lX1Tgt9FOCKhJDyI8JI%3D","a-practical-guide-to-git-and-github-for-windows-users-from-beginner-to-expert-easy-step-by-step-exercises",1793958635,{"doc_id":190,"doc_title":191,"file_type":136,"home_preview_img_url":192,"slug":193,"view_count":8,"category_name":30,"create_tm":194},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=1796111399&Signature=%2BTqoWMEKagS5gah3Y8WTahi%2F90s%3D","pro-git-version-21424-read-online-free",1795898482,{"doc_id":196,"doc_title":197,"file_type":136,"home_preview_img_url":198,"slug":199,"view_count":8,"category_name":30,"create_tm":200},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=1796111399&Signature=FrnH%2FEZJYwToOn%2B4RM%2FmRBEeIF8%3D","git-a-practical-beginner-friendly-guide-to-version-control-from-your-first-commit-to-branching-merging-github",1795898473,{"doc_id":202,"doc_title":203,"file_type":136,"home_preview_img_url":204,"slug":205,"view_count":24,"category_name":30,"create_tm":206},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=1796111399&Signature=NW0TFJPfp29w06n4AqUO22p0NOM%3D","project-management-with-git-basics-introduction",1794246583,{"doc_id":208,"doc_title":209,"file_type":136,"home_preview_img_url":210,"slug":211,"view_count":8,"category_name":30,"create_tm":212},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=1796111399&Signature=Eox8CNx9QR5plPSBD82xzB1kaoM%3D","the-modern-git-github-guide-a-beginner-to-professional-quick-reference-2026-edition",1795908750,{"doc_id":214,"doc_title":215,"file_type":136,"home_preview_img_url":216,"slug":217,"view_count":8,"category_name":30,"create_tm":218},760088,"Practical Git - Introduction (And Beyond)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044495431/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=PNJ%2BSDB8vXBLX6doLTdOkjcgDTA%3D","practical-git-introduction-and-beyond",1795898469,{"doc_id":220,"doc_title":221,"file_type":136,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":30,"create_tm":225},391868,"JMSTechOps - DevOps course curriculum - Offline Course Timings - Foundation-DevOps Principles","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917408978/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=EQ6ybaFjDp%2Byegdhf2FSF2SdBnA%3D","jmstechops-devops-course-curriculum-offline-course-timings-foundation-devops-principles",18,1790359549]