{"id":188,"date":"2025-09-03T17:56:47","date_gmt":"2025-09-03T22:56:47","guid":{"rendered":"https:\/\/sts.doit.wisc.edu\/training-materials\/?post_type=manual&#038;p=188"},"modified":"2026-11-23T14:37:40","modified_gmt":"2026-11-23T20:37:40","slug":"git-and-github","status":"publish","type":"manual","link":"https:\/\/sts.doit.wisc.edu\/training-materials\/manual\/git-and-github\/","title":{"rendered":"GitHub: Git and GitHub for Beginners"},"content":{"rendered":"\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">About this Workshop<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This manual introduces <strong>git<\/strong>, a version control system, and <strong>GitHub<\/strong>, a platform for storing and sharing git projects. It&#8217;s written for complete beginners. You don&#8217;t need any experience with git, version control or the command line.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What this manual covers<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>What version control is, and how git and GitHub are different<\/li>\n\n\n\n<li>How to create a repository, add files and make commits<\/li>\n\n\n\n<li>How to publish a repository to GitHub, clone one, and pull and push changes<\/li>\n\n\n\n<li>How to undo a commit, work with branches, and contribute using forks and pull requests<\/li>\n\n\n\n<li>What a conflict is and how to resolve one<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The examples use <strong>GitHub Desktop<\/strong>, a free app that handles the most common git tasks. Where it helps, the matching command-line commands are shown too.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To practice, work through the <strong>Hands-On Activities<\/strong>, which follow the same order as this manual. The one-page <strong>cheat sheet<\/strong> and a conflict practice file are in the class files: use the Files button at the top of this page.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">What You&#8217;ll Need<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">A GitHub account<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Basic GitHub accounts are free for individuals. Create one at <a href=\"https:\/\/github.com\/signup\">https:\/\/github.com\/signup<\/a>, or sign in to an existing account at <a href=\"https:\/\/github.com\/login\">https:\/\/github.com\/login<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GitHub Desktop<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download GitHub Desktop from <a href=\"https:\/\/desktop.github.com\/download\/\">https:\/\/desktop.github.com\/download\/<\/a>. There are versions for Mac (Apple silicon and Intel) and Windows. After installing it, open the app and sign in with your GitHub account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub Desktop comes with its own copy of git, so you don&#8217;t need to install git separately to use it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">git on the command line (optional)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;d also like to use git by typing commands in a terminal:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Mac:<\/strong> git comes with Apple&#8217;s Xcode Command Line Tools. Install them by running <code class=\"\" data-line=\"\">xcode-select --install<\/code> in Terminal.<\/li>\n\n\n\n<li><strong>Windows:<\/strong> install Git for Windows from <a href=\"https:\/\/git-scm.com\/install\/windows\">https:\/\/git-scm.com\/install\/windows<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">To check that git is installed, run:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git --version<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Other ways to use git<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Many code editors, such as VS Code, also have git built in. Try a few options and use whichever works best for you.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">What Is git?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">git is a <strong>version control system (VCS)<\/strong>: a tool that tracks changes to the files in a project and lets several people work on the same set of files. It&#8217;s free, open-source and one of the most widely used tools among software developers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why use version control?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Using a version control system like git in your projects:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Lets multiple people work on the same project at the same time<\/li>\n\n\n\n<li>Makes sure everyone is working with the same project files<\/li>\n\n\n\n<li>Helps collaborators avoid accidentally overwriting each other&#8217;s work<\/li>\n\n\n\n<li>Lets you try out changes on a separate branch without breaking the working version<\/li>\n\n\n\n<li>Makes it easy to go back to an earlier version if something goes wrong<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">git was originally created by Linus Torvalds, the creator of Linux, and is now maintained by a large open-source community. No single person or company owns it, and you can install it anywhere: on your laptop, on a server or in the cloud.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">What Is GitHub?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub is a cloud platform for storing git projects online and collaborating on them. It&#8217;s owned by Microsoft. Accounts are free for individuals, and paid plans add features for larger teams.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why people use GitHub<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It makes collaborating with other people easy<\/li>\n\n\n\n<li>You can reach your projects from anywhere with an internet connection<\/li>\n\n\n\n<li>You can share your work publicly, or keep it private (for example, class assignments)<\/li>\n\n\n\n<li>Many people link their GitHub profile on their resume, especially when applying for tech jobs<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Alternatives to GitHub<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub is popular, but it isn&#8217;t the only place to host git projects. Others include GitLab and Bitbucket. UW\u2013Madison runs its own GitLab, which some CS courses use.<\/p>\n\n\n\n<div class=\"wp-block-group sts-callout-goodtoknow has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>You don&#8217;t need an impressive GitHub profile.<\/strong> There&#8217;s a common myth that &#8220;real&#8221; developers need a big GitHub history full of commits. That isn&#8217;t true, and plenty of professional developers have very little public activity on GitHub.<\/p>\n<\/div>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">git vs. GitHub<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">git and GitHub are related, but they&#8217;re different things.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>git<\/strong> is the open-source tool that tracks changes to your files. You install it on your computer, and it works without an internet connection.<\/li>\n\n\n\n<li><strong>GitHub<\/strong> is a website and service that stores git projects online. It makes sharing and collaborating easier.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need GitHub to use git?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. You can use git entirely on your own computer. GitHub (or a similar service) becomes useful when you want a backup online, want to work from more than one computer, or want to collaborate with other people.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">GitHub Desktop vs. the Command Line<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">git was built as a command-line tool. You can use it by typing commands in a terminal program, such as PowerShell on Windows or Terminal on Mac, but that can feel confusing or intimidating if you haven&#8217;t used a terminal before.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why GitHub Desktop?<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It covers the git features and tasks people use most often<\/li>\n\n\n\n<li>Many people find its interface easier and more intuitive<\/li>\n\n\n\n<li>You don&#8217;t need to remember the syntax and options for lots of different commands<\/li>\n\n\n\n<li>You can see at a glance which files have been added, removed or changed since your last commit<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">When you might want the command line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Some advanced or specialized git features are only available on the command line. You may want to learn it eventually, but for many people GitHub Desktop does everything they need.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other desktop apps<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">GitHub Desktop is one of many apps for working with git. Others include Sourcetree (free), GitKraken (free, with paid plans) and Fork. See the full list at <a href=\"https:\/\/git-scm.com\/tools\/guis\">https:\/\/git-scm.com\/tools\/guis<\/a>.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Repositories<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A git project is stored in a <strong>repository<\/strong>, often shortened to <strong>repo<\/strong>. A repo is a folder on your computer that contains:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All of the project&#8217;s files, such as code, images and other assets<\/li>\n\n\n\n<li>A version history that records every change made over the life of the project<\/li>\n\n\n\n<li>Documentation, such as a README file<\/li>\n\n\n\n<li>Other information that&#8217;s useful to people viewing or contributing to the project, such as release notes<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Two ways to start<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Initialize<\/strong> a new repo, starting from scratch on your computer<\/li>\n\n\n\n<li><strong>Clone<\/strong> an existing repo, usually by downloading it from GitHub (see Remote Repositories and Cloning below)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Create a new repository in GitHub Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Choose <strong>File \u2192 New Repository\u2026<\/strong> (<strong>Cmd + N<\/strong> on Mac, <strong>Ctrl + N<\/strong> on Windows).<\/li>\n\n\n\n<li><strong>Name:<\/strong> enter a name. This also becomes the folder name.<\/li>\n\n\n\n<li><strong>Description:<\/strong> optionally, add a short description of the project.<\/li>\n\n\n\n<li><strong>Local Path:<\/strong> choose where on your computer the repo folder should be saved.<\/li>\n\n\n\n<li>Optionally, have GitHub Desktop create a README, a .gitignore file or a license.<\/li>\n\n\n\n<li>Click <strong>Create Repository<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Move to the folder where you want the repo, then run <code class=\"\" data-line=\"\">git init<\/code> with the repo&#8217;s name. This creates a new folder with that name and starts a repo inside it.<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">cd path\/to\/your\/projects\ngit init my-first-repo<\/code><\/pre>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Adding Files and .gitignore<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before git can save a file in a commit, the file has to be <strong>added<\/strong> to the commit. This is also called <strong>staging<\/strong> the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">In GitHub Desktop<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Any file you create, change or delete inside the repo folder appears in the <strong>Changes<\/strong> tab. Files are checked by default, which means they&#8217;ll be included in your next commit. Uncheck a file to leave it out of that commit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The small icon next to each file shows what happened to it: green for a new file, yellow for a changed file and red for a deleted file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-file-changes-edited.jpg\" alt=\"GitHub Desktop Changes tab listing a new file, bucky.txt, checked and ready to commit, with the Commit to main button below\" class=\"wp-image-1807\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-file-changes-edited.jpg 1080w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-file-changes-edited-300x216.jpg 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-file-changes-edited-1024x739.jpg 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-file-changes-edited-768x554.jpg 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO:<\/strong> I need to add an updated screenshot <\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add one file, or add every changed file in the folder with a dot:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git add notes.txt\ngit add .\ngit status<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code class=\"\" data-line=\"\">git status<\/code> shows which files are staged and which aren&#8217;t.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Ignoring files with .gitignore<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes your project folder has files that shouldn&#8217;t be part of the repo, like system files, very large data files or files that contain passwords. List those files in a file named <strong>.gitignore<\/strong> in the repo folder, and git will ignore them.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GitHub Desktop:<\/strong> right-click (or two-finger click) the file in the Changes list and choose <strong>Ignore File<\/strong>.<\/li>\n\n\n\n<li><strong>Command line or any editor:<\/strong> open the .gitignore file and add each file name on its own line.<\/li>\n<\/ul>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Commits<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>commit<\/strong> saves a snapshot of a set of changes to your project. A commit can be as small as fixing a typo or as large as adding a new feature. Every commit needs a <strong>commit message<\/strong>: a short description of what changed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Good commit habits<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep each commit focused on one change, so it&#8217;s easier to see where something was introduced<\/li>\n\n\n\n<li>Make sure all the changes in a commit are related. A commit can still touch several files or lines.<\/li>\n\n\n\n<li>On small or solo projects this is flexible, but on larger projects or when working with others, one change per commit is a good habit<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Make a commit in GitHub Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the Changes tab, check the files you want to include.<\/li>\n\n\n\n<li>Type a short summary in the <strong>Summary<\/strong> field (required). Add more detail in <strong>Description<\/strong> if you like.<\/li>\n\n\n\n<li>Click <strong>Commit to main<\/strong>. The button shows the name of the branch you&#8217;re on.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1029\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-commit-message.png\" alt=\"GitHub Desktop commit area with the summary &quot;Adding my first file&quot; and a short description filled in above the Commit to main button\" class=\"wp-image-1808\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-commit-message.png 1029w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-commit-message-300x227.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-commit-message-1024x775.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-commit-message-768x581.png 768w\" sizes=\"auto, (max-width: 1029px) 100vw, 1029px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO<\/strong>: nvm i need to update screenshots across the board<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">After you commit, the Changes list clears and your commit appears in the <strong>History<\/strong> tab.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">See what changed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click a file in the Changes tab to see exactly what changed in it. Added lines are highlighted in green and removed lines in red.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-diff-view.png\" alt=\"GitHub Desktop showing two changed files, bucky.txt and new.txt, with the added line highlighted in green in the diff view\" class=\"wp-image-1809\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-diff-view.png 1080w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-diff-view-300x216.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-diff-view-1024x739.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-diff-view-768x554.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO <\/strong><\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git commit -m &quot;Add my first file&quot;\ngit log --oneline<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code class=\"\" data-line=\"\">git log --oneline<\/code> lists your commits, newest first.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Publishing a Repository<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A repo you create in GitHub Desktop only exists on your computer until you <strong>publish<\/strong> it to GitHub.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click <strong>Publish repository<\/strong> at the top of GitHub Desktop.<\/li>\n\n\n\n<li>Choose a name for the repo on GitHub. This is usually the same as the folder name.<\/li>\n\n\n\n<li>Optionally, add a description.<\/li>\n\n\n\n<li>Decide whether to keep <strong>Keep this code private<\/strong> checked.<\/li>\n\n\n\n<li>Click <strong>Publish Repository<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1026\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-publish-repo.png\" alt=\"GitHub Desktop Publish Repository dialog with fields for the repository name and description and the Keep this code private checkbox\" class=\"wp-image-1810\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-publish-repo.png 1026w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-publish-repo-300x228.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-publish-repo-1024x777.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-publish-repo-768x583.png 768w\" sizes=\"auto, (max-width: 1026px) 100vw, 1026px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO <\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group sts-callout-important has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Keep class assignments private.<\/strong> If you uncheck <strong>Keep this code private<\/strong>, anyone can see your code on GitHub.com. Leave it checked for class assignments.<\/p>\n<\/div>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Remote Repositories and Cloning<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>remote repository<\/strong> is a copy of a repo that&#8217;s hosted online, such as on GitHub, and that you work with over the internet. When you have a local copy of a remote repo, git refers to the remote as <strong>origin<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Cloning<\/strong> makes a local copy of a remote repo on your computer, including its full history.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Clone from GitHub.com<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to the repo&#8217;s page on GitHub. For example, STS&#8217;s practice repo is at <a href=\"https:\/\/github.com\/stsprojects\/intro-to-git\">https:\/\/github.com\/stsprojects\/intro-to-git<\/a>.<\/li>\n\n\n\n<li>Click the green <strong>Code<\/strong> button.<\/li>\n\n\n\n<li>Click <strong>Open with GitHub Desktop<\/strong>, or copy the repo&#8217;s URL to paste into GitHub Desktop.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/github-repo-code-button.png\" alt=\"The stsprojects\/intro-to-git repository page on GitHub.com, showing its files and the green Code button used to clone the repo\" class=\"wp-image-1812\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/github-repo-code-button.png 986w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/github-repo-code-button-300x237.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/github-repo-code-button-768x607.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Clone in GitHub Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Choose <strong>File \u2192 Clone Repository\u2026<\/strong> (<strong>Cmd + Shift + O<\/strong> on Mac, <strong>Ctrl + Shift + O<\/strong> on Windows).<\/li>\n\n\n\n<li>Click the <strong>URL<\/strong> tab and paste the repo&#8217;s URL.<\/li>\n\n\n\n<li><strong>Local Path:<\/strong> choose where on your computer to save the repo.<\/li>\n\n\n\n<li>Click <strong>Clone<\/strong>.<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group sts-callout-goodtoknow has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">You can&#8217;t clone a repo into a folder that&#8217;s already a git repo. If you try, GitHub Desktop shows an error. Choose a different folder.<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git clone https:\/\/github.com\/stsprojects\/intro-to-git.git<\/code><\/pre>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Pull and Push<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pull<\/strong> and <strong>push<\/strong> keep your local repo and the remote repo in sync.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pull<\/strong> downloads new commits from the remote repo and adds them to your local copy.<\/li>\n\n\n\n<li><strong>Push<\/strong> uploads the commits you&#8217;ve made locally to the remote repo.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Pull in GitHub Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click <strong>Fetch origin<\/strong> at the top to check for new commits.<\/li>\n\n\n\n<li>If there are new commits, the button changes to <strong>Pull origin<\/strong>. Click it.<\/li>\n\n\n\n<li>Your files update, and the new commits appear in the History tab.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you have uncommitted changes in files that the pull would change, GitHub Desktop offers to <strong>stash<\/strong> them. Stashing sets your changes aside, then restores them after the pull.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1041\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-pull-origin.png\" alt=\"GitHub Desktop showing the Pull origin button in the toolbar and a prompt to pull 1 commit from the origin remote\" class=\"wp-image-1813\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-pull-origin.png 1041w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-pull-origin-300x224.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-pull-origin-1024x766.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-pull-origin-768x575.png 768w\" sizes=\"auto, (max-width: 1041px) 100vw, 1041px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO<\/strong><\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Push in GitHub Desktop<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After you commit, click <strong>Push origin<\/strong> at the top. If the remote has commits you don&#8217;t have yet, you&#8217;ll need to pull first.<\/p>\n\n\n\n<div class=\"wp-block-group sts-callout-important has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">You can only push to a remote repo if you&#8217;re a collaborator on it. See Forks and Pull Requests below for how to contribute to other people&#8217;s repos.<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git pull\ngit push<\/code><\/pre>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Undoing a Commit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s common to need to change something after you&#8217;ve already made a commit. Which option to use depends on whether you&#8217;ve pushed the commit yet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Commits you haven&#8217;t pushed yet<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Undo:<\/strong> removes the commit but keeps all of its changes in your files, so you can redo it. In GitHub Desktop, click <strong>Undo<\/strong> under the commit box.<\/li>\n\n\n\n<li><strong>Amend:<\/strong> keeps the commit but lets you change its message or add and remove files. In the History tab, right-click your latest commit and choose <strong>Amend Commit\u2026<\/strong>.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Don&#8217;t amend commits you&#8217;ve already pushed to a shared repo.<\/strong> Amending rewrites the project history, which can cause problems for collaborators and lose work.<\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Commits you&#8217;ve already pushed<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Revert<\/strong> creates a new commit that undoes the changes from an earlier commit. Nothing is removed from the history, so it&#8217;s the safe choice for commits that are already pushed. In the History tab, right-click the commit and choose <strong>Revert Changes in Commit<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git commit --amend -m &quot;Better commit message&quot;\ngit revert &lt;commit-id&gt;<\/code><\/pre>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<h3 class=\"wp-block-heading\">Reset and rebase<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You may also see <code class=\"\" data-line=\"\">git reset<\/code> and <code class=\"\" data-line=\"\">git rebase<\/code>. This workshop doesn&#8217;t cover them, because both rewrite history and can permanently lose work if used incorrectly.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Reset<\/strong> moves your branch back to an earlier commit and drops the commits that came after it.<\/li>\n\n\n\n<li><strong>Rebase<\/strong> replays your commits on top of another branch. It gives a tidier, straight-line history, but it rewrites the commits.<\/li>\n<\/ul>\n<\/div>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Branches<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every repo starts with a main version of the project, called the <strong>main branch<\/strong>. A <strong>branch<\/strong> is a separate line of work inside the same repo. Branches let you try new features or make big changes without affecting the main branch until you&#8217;re ready.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You may see the term <strong>HEAD<\/strong>. That&#8217;s how git keeps track of which branch you&#8217;re currently working on.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create a branch in GitHub Desktop<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click <strong>Current Branch<\/strong> at the top.<\/li>\n\n\n\n<li>Click <strong>New Branch<\/strong> (<strong>Shift + Cmd + N<\/strong> on Mac, <strong>Ctrl + Shift + N<\/strong> on Windows).<\/li>\n\n\n\n<li>Type a name for the branch and click <strong>Create Branch<\/strong>.<\/li>\n\n\n\n<li>To share the branch on GitHub, click <strong>Publish branch<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-branch.png\" alt=\"GitHub Desktop Current Branch menu open, showing the branch list and the New Branch button\" class=\"wp-image-1814\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-branch.png 1086w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-branch-300x215.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-branch-1024x735.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-new-branch-768x551.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO <\/strong><\/p>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Switch branches<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click <strong>Current Branch<\/strong> and choose the branch you want. If you have uncommitted changes, GitHub Desktop asks whether to leave them on the current branch or bring them to the new one.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Merge a branch<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When the work on a branch is finished, you <strong>merge<\/strong> it into another branch, usually main, to combine their changes. This is often done with a pull request on GitHub (see below). In GitHub Desktop, you can also switch to main and choose <strong>Branch \u2192 Merge into Current Branch\u2026<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">On the command line<\/h3>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">git switch -c my-new-feature\ngit switch main<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code class=\"\" data-line=\"\">git switch -c<\/code> creates a new branch and switches to it. You may also see the older command <code class=\"\" data-line=\"\">git checkout<\/code>, which still works. &#8220;Checking out&#8221; a branch means switching to it.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Forks and Pull Requests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Anyone can view a public repo, but you can&#8217;t push changes to it unless you&#8217;re a collaborator. To contribute to someone else&#8217;s repo, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask to be added as a collaborator (how this works depends on the team or project), or<\/li>\n\n\n\n<li>Fork the repo, make your changes, then open a pull request<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Forks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>fork<\/strong> is your own copy of someone else&#8217;s repo, stored in your GitHub account. You can change your fork freely without affecting the original. Forks are also how people start their own versions of open-source projects.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Pull requests<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When your changes on a branch or fork are ready, you open a <strong>pull request<\/strong> (PR). A pull request asks the repo&#8217;s owners to review your changes and merge them into their project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In GitHub Desktop, after you push a branch, click <strong>Preview Pull Request<\/strong> or <strong>Create Pull Request<\/strong> to open one on GitHub.com.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Conflicts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>conflict<\/strong> happens when two changes affect the same part of a file and git can&#8217;t tell which one to keep. This usually happens when you pull or merge changes that overlap with your own. Conflicts need a person to resolve them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What a conflict looks like<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">git marks the conflicting part of the file like this:<\/p>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-bash\" data-line=\"\">&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD\nYour version of the line\n=======\nThe other version of the line\n&gt;&gt;&gt;&gt;&gt;&gt;&gt; main<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Resolve a conflict<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>GitHub Desktop lists the files with conflicts. Open each one in your editor.<\/li>\n\n\n\n<li>Decide what the final text should be. Keep one version, the other, or a mix of both.<\/li>\n\n\n\n<li>Delete the conflict marker lines (<code class=\"\" data-line=\"\">&lt;&lt;&lt;&lt;&lt;&lt;&lt;<\/code>, <code class=\"\" data-line=\"\">=======<\/code> and <code class=\"\" data-line=\"\">&gt;&gt;&gt;&gt;&gt;&gt;&gt;<\/code>) and save the file.<\/li>\n\n\n\n<li>Commit the result.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"779\" src=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-conflict-markers.png\" alt=\"GitHub Desktop diff view of a file with conflict markers, showing two different versions of a line separated by equals signs\" class=\"wp-image-1815\" srcset=\"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-conflict-markers.png 1085w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-conflict-markers-300x215.png 300w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-conflict-markers-1024x735.png 1024w, https:\/\/sts.doit.wisc.edu\/training-materials\/wp-content\/uploads\/2026\/10\/git-desktop-conflict-markers-768x551.png 768w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group sts-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>TODO <\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group sts-callout-goodtoknow has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\">Pulling often and keeping commits small makes conflicts less likely.<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Want to practice? Download <code class=\"\" data-line=\"\">conflict-practice.txt<\/code> from the class files and follow the steps inside it.<\/p>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Key Terms<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>git:<\/strong> the open-source tool that tracks changes to files<\/li>\n\n\n\n<li><strong>GitHub:<\/strong> a cloud platform for storing git projects and collaborating on them<\/li>\n\n\n\n<li><strong>Repository (repo):<\/strong> a git project. It can be local (on your computer) or remote (online, such as on GitHub).<\/li>\n\n\n\n<li><strong>Staging:<\/strong> adding files to your next commit<\/li>\n\n\n\n<li><strong>.gitignore:<\/strong> a file listing files that git should ignore<\/li>\n\n\n\n<li><strong>Commit:<\/strong> a saved snapshot of a set of changes, with a commit message describing what changed<\/li>\n\n\n\n<li><strong>Remote \/ origin:<\/strong> the online copy of a repo; origin is git&#8217;s default name for it<\/li>\n\n\n\n<li><strong>Clone:<\/strong> make a local copy of a remote repo<\/li>\n\n\n\n<li><strong>Pull:<\/strong> download new commits from the remote repo to your local repo<\/li>\n\n\n\n<li><strong>Push:<\/strong> upload your local commits to the remote repo<\/li>\n\n\n\n<li><strong>Branch:<\/strong> a separate line of work inside a repo, used to try changes without affecting main<\/li>\n\n\n\n<li><strong>Fork:<\/strong> your own copy of someone else&#8217;s repo, in your GitHub account<\/li>\n\n\n\n<li><strong>Merge:<\/strong> combine the changes from one branch into another<\/li>\n\n\n\n<li><strong>Pull request:<\/strong> a request for a repo&#8217;s owners to review your changes and merge them<\/li>\n\n\n\n<li><strong>Conflict:<\/strong> overlapping changes that git can&#8217;t combine on its own, so you resolve them by hand<\/li>\n<\/ul>\n<\/section>\n\n\n\n<section class=\"wp-block-sts-block-sts-custom-sections\">\n<h2 class=\"wp-block-heading\">Learn More<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You now know enough to use git and GitHub for your own projects. git can do much more, but most of it is advanced or only needed in specific situations, and some of it is only available on the command line.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The one-page Git and GitHub cheat sheet, in this workshop\u2019s class files<\/li>\n\n\n\n<li>Official git documentation: <a href=\"https:\/\/git-scm.com\/docs\">https:\/\/git-scm.com\/docs<\/a><\/li>\n\n\n\n<li>Pro Git, a free online book: <a href=\"https:\/\/git-scm.com\/book\">https:\/\/git-scm.com\/book<\/a><\/li>\n\n\n\n<li>GitHub Desktop documentation: <a href=\"https:\/\/docs.github.com\/en\/desktop\">https:\/\/docs.github.com\/en\/desktop<\/a><\/li>\n\n\n\n<li>GitHub Desktop keyboard shortcuts: <a href=\"https:\/\/docs.github.com\/en\/desktop\/overview\/github-desktop-keyboard-shortcuts\">https:\/\/docs.github.com\/en\/desktop\/overview\/github-desktop-keyboard-shortcuts<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Need help? Drop in to STS office hours or request an appointment at <a href=\"https:\/\/sts.doit.wisc.edu\">https:\/\/sts.doit.wisc.edu<\/a>.<\/p>\n<\/section>\n","protected":false},"author":10,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_uw_seo_meta_title":"","_uw_seo_meta_description":"","_uw_seo_twitter_card_type":"summary_large_image","_uw_seo_meta_image":"","_uw_seo_meta_image_url":"","_uw_seo_meta_image_sizes":[],"_uw_seo_custom_meta_tags":[],"footnotes":""},"categories":[3],"class_list":["post-188","manual","type-manual","status-publish","hentry","category-coding-and-data"],"acf":[],"_links":{"self":[{"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/manual\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/manual"}],"about":[{"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/types\/manual"}],"author":[{"embeddable":true,"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/users\/10"}],"version-history":[{"count":7,"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/manual\/188\/revisions"}],"predecessor-version":[{"id":2309,"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/manual\/188\/revisions\/2309"}],"wp:attachment":[{"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sts.doit.wisc.edu\/training-materials\/wp-json\/wp\/v2\/categories?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}