[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-572757-105":53,"doc-detail-572757-en":126},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","git-and-github-course-material-hamburg-coding-school-22012022","Git and GitHub Course Material - Hamburg Coding School - 22.01.2022","","Course material for a Git and GitHub workshop (Hamburg Coding School, 22.01.2022) covering the core workflow of version control. The handout introduces what Git is, how commits build a version history, and how to use the command line. It explains installation steps for macOS, Windows, and required tooling, then details command basics, Git setup (user name and email), configuration inspection, and common commands for projects and status. It also covers staging changes and undoing work through commit and file/state operations, preparing learners for branching, history, remotes, and collaboration topics.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/git-and-github-course-material-hamburg-coding-school-22012022/572757/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/git-and-github-course-material-hamburg-coding-school-22012022/572757.png","ImageObject",442,249,{"name":88,"@type":89},"eBook King","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-20","2026-10-13",true,{"@type":98,"interactionType":99,"userInteractionCount":79},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"What is Git and what problem does it solve?","Question",{"text":108,"@type":109},"Git is a tool for version control and supports collaborative work on the same code base. Changes are saved as commits, which together form a commit history.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"How do you install Git on macOS and Windows?",{"text":113,"@type":109},"On macOS, install Homebrew if needed, then install Git via Homebrew and verify with `git --version`. On Windows, download and install Git from gitforwindows.org, then verify the installation in a command prompt using `git --version`.",{"name":115,"@type":106,"acceptedAnswer":116},"What do staging changes mean in Git, and which command is used?",{"text":117,"@type":109},"Staging changes means collecting the edits you want included in the next commit. You stage files using `git add`, and staged files are prepared to be committed with `git commit`.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},572757,1792338108,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":79,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":135,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":140,"read_time":141},962088006270,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","1  \nGit and G itHub  \nCourse Material • Hamburg Coding School • 22.01.2022 ─  \nOutline  \n● Introduction to G it  \n○ What is g it?  \n○ Installing G it  \n● Command Line Basics  \n● Git Setup  \n● Git Commands  \n● Staging Changes  \n● Git Status  \n● Undoing Changes  \n○ Resetting modiﬁed ﬁles  \n○ Removing ﬁles from the stage  \n○ Undoing a commit  \n○ Reverting a commit (optional knowledge)  \n● Branches  \n○ G it Commands for Branches  \n○ Merging a branch into master  \n○ Branching strategies (optional knowledge)  \n● G it Commit History  \n● Git Aliases (optional knowledge)  \n● GitHub  \n● Remote Repositories  \n○ Clone a Repository  \n○ Create a remote copy of your repository  \n○ Check what your remote is  \n● Push and Pull  \n● Pull Requests  \n● Solving Conﬂicts  \n● G itHub Pages  \n● Rebase (optional knowledge)  \n2  \nGit & GitHub  \nIntroduction to G it  \nWhat is g it?  \n● Git is a tool for version control.  \n● It is used for collaborative work on the same code base.  \n● Example:  \nIf the team that programs the game Super Mario works together, one developer wants to edit the shape of the clouds, and another wants to change the color of the tubes. G it makes it easy that they can both work on the same code simultaneously.  \n● All changes are saved in so-called commits.  \n● Many commits make up the version history, or commit history.  \nCommit history (source: [https://git-scm.com/book/en/v1/Getting-Started-About-Version-Control](https://git-scm.com/book/en/v1/Getting-Started-About-Version-Control))  \n● Is git a language or a software? Git is a software.  \n● G it runs on the command line.  \n● There are applications with a graphical user interface, but for this workshop, we will use the command line.  \nInstalling G it  \nCheck if git is already installed:  \n$ g it --version  \ngit version 2 .17 .2 (Apple Git-113)  \n3  \nOn Mac:  \nWe need homebrew.  \nCheck if you have it installed:  \n$ brew --version Homebrew 1 .8 .3  \nIf this gives an error, you need to install homebrew: [https://brew.sh/](https://brew.sh/)  \n[/us r/bin/ruby -e](/us r/bin/ruby -e) \" $ ( curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/master/install](https://raw.githubusercontent.com/Homebrew/install/master/install))\"  \nThen install g it with homebrew like this:  \n$ brew install g it  \nVerify if the installation was successful:  \n$ g it --version  \ngit version 2 .17 .2 (Apple Git-113)  \nOn Windows:  \nDownload and install git: [https://gitforwindows.org/](https://gitforwindows.org/)  \nOpen a command prompt and verify if git was successfully installed:  \n$ g it --version git version 2 .9 .2  \n4  \nCommand Line Basics  \nFor this, you can use the Terminal (on Mac), or the Command Prompt (on Windows), or use the Terminal in Visual Studio Code.  \ncd \u003Cdirectory>  \ncd ..  \nmkdir \u003Cdirectory> touch \u003Cfile>  \ntype nul > file .txtls  \nrm \u003Cfile or folder> rmdir \u003Cfolder> del \u003Cfile>  \nrm -r \u003Cfolder> rmdir /S \u003Cfolder>  \nNavigate into a directory Navigate up to the parent directory Create a new directory  \nCreate a new ﬁle ( Mac/ Linux)  \nCreate a new ﬁle (Windows)  \nList all ﬁles and directories in the current directory Delete a ﬁle or folder ( Mac/ Linux)  \nDelete a folder (Windows)  \nDelete a ﬁle (Windows)  \nDelete a folder and all contents ( Mac/ Linux)  \nDelete a folder and all contents (Windows)  \nTip:  \nIf you want to know what a command does, type it in: [https://explainshell.com](https://explainshell.com. It will)[. It will](https://explainshell.com. It will)[ ](https://explainshell.com. It will)[give you an explanation and a breakdown of all commands and parameters.](give you an explanation and a breakdown of all commands and parameters.)  \nGit Setup  \nIf you use g it for the ﬁ rst time, you need to set up a few things before you start:  \n● Deﬁ ne the user name  \n● Deﬁ ne your email  \nThis is needed so that g it has information about the author of the changes. You do this with the following commands:  \n$ git config --global [user.name](user.name) \"John Doe\"  \n$ git config --glo","cbCaihF8jfTC2khJ","https://ap.wps.com/l/cbCaihF8jfTC2khJ","pdf",768559,25,"English","# Outline\n## Introduction to Git\n## Command Line Basics\n## Git Setup\n## Git Commands\n## Staging Changes\n## Git Status\n## Undoing Changes\n## Branches\n## GitHub\n## Remote Repositories\n## Push and Pull\n## Pull Requests\n## Solving Conflicts\n## GitHub Pages\n## Rebase (optional knowledge)","[{\"question\":\"What is Git and what problem does it solve?\",\"answer\":\"Git is a tool for version control and supports collaborative work on the same code base. Changes are saved as commits, which together form a commit history.\"},{\"question\":\"How do you install Git on macOS and Windows?\",\"answer\":\"On macOS, install Homebrew if needed, then install Git via Homebrew and verify with `git --version`. On Windows, download and install Git from gitforwindows.org, then verify the installation in a command prompt using `git --version`.\"},{\"question\":\"What do staging changes mean in Git, and which command is used?\",\"answer\":\"Staging changes means collecting the edits you want included in the next commit. You stage files using `git add`, and staged files are prepared to be committed with `git commit`.\"}]","Git and GitHub Course Material - Hamburg Coding School - 22.01.2022 | PDF",1791929149,9]