{"id":19522890,"url":"https://github.com/techwatching/intro-to-github","last_synced_at":"2026-03-19T10:16:18.989Z","repository":{"id":172147756,"uuid":"624484061","full_name":"TechWatching/intro-to-github","owner":"TechWatching","description":"My first Skills course","archived":false,"fork":false,"pushed_at":"2023-10-01T23:00:06.000Z","size":777,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T14:18:42.890Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechWatching.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-06T15:10:51.000Z","updated_at":"2023-04-06T15:10:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"78a9a093-59f6-4751-a1aa-f1c1b0cf1914","html_url":"https://github.com/TechWatching/intro-to-github","commit_stats":null,"previous_names":["techwatching/intro-to-github"],"tags_count":0,"template":false,"template_full_name":"skills/introduction-to-github","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2Fintro-to-github","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2Fintro-to-github/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2Fintro-to-github/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWatching%2Fintro-to-github/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechWatching","download_url":"https://codeload.github.com/TechWatching/intro-to-github/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240771903,"owners_count":19854982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T00:41:26.981Z","updated_at":"2026-01-30T00:07:10.664Z","avatar_url":"https://github.com/TechWatching.png","language":null,"readme":"\u003c!-- \n  \u003c\u003c\u003c Author notes: Header of the course \u003e\u003e\u003e \n  Include a 1280×640 image, course title in sentence case, and a concise description in emphasis.\n  In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches.\n  Add your open source license, GitHub uses Creative Commons Attribution 4.0 International.\n--\u003e\n\n# Introduction to GitHub\n\n_Get started using GitHub in less than an hour._\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Start of the course \u003e\u003e\u003e \n  Include start button, a note about Actions minutes,\n  and tell the learner why they should take the course.\n  Each step should be wrapped in \u003cdetails\u003e/\u003csummary\u003e, with an `id` set.\n  The start \u003cdetails\u003e should have `open` as well.\n  Do not use quotes on the \u003cdetails\u003e tag attributes.\n--\u003e\n\n\u003cdetails id=0\u003e\n\u003csummary\u003e\u003ch2\u003eWelcome\u003c/h2\u003e\u003c/summary\u003e\n\nPeople use GitHub to build some of the most advanced technologies in the world. Whether you’re visualizing data or building a new game, there’s a whole community and set of tools on GitHub that can help you do it even better. GitHub Skills’ “Introduction to GitHub” course guides you through everything you need to start contributing in less than an hour.\n\n- **Who is this for**: New developers, new GitHub users, and students.\n- **What you'll learn**: We'll introduce repositories, branches, commits, and pull requests.\n- **What you'll build**: We'll make a short Markdown file you can use as your [profile README](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme).\n- **Prerequisites**: None. This course is a great introduction for your first day on GitHub.\n- **How long**: This course is four steps long and takes less than one hour to complete.\n\n**Course tips:**\n\n* Glossary terms will be _emphasised_ and linked to their definition. \n\n## How to start this course\n\n1. Right-click **Start course** and open the link in a new tab.\n   \n   [![start-course](https://user-images.githubusercontent.com/1221423/218596841-0645fe1a-4aaf-4f51-9ab3-8aa2d3fdd487.svg)](https://github.com/skills/introduction-to-github/generate)\n   \n2. In the new tab, follow the prompts to create a new repository.\n\n   - For owner, choose your personal account or an organization to host the repository.\n   - We recommend creating a public repository—private repositories will [use Actions minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions).\n   - Name the repository something easy for you to recognize and remember.\n   \n   ![Create a new repository](/images/create-new-repository.png)\n   \n3. After your new repository is created, wait about 20 seconds, then refresh your new repository page. Follow the step-by-step instructions in the new repository's README. [GitHub Actions](https://docs.github.com/en/actions) will automatically close this welcome and open the first step.\n\n\u003c/details\u003e\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Step 1 \u003e\u003e\u003e \n  Choose 3-5 steps for your course.\n  The first step is always the hardest, so pick something easy!\n  Link to docs.github.com for further explanations.\n  Encourage users to open new tabs for steps!\n--\u003e\n\n\u003cdetails id=1\u003e\n\u003csummary\u003e\u003ch2\u003eStep 1: Create a branch\u003c/h2\u003e\u003c/summary\u003e\n\n_Welcome to \"Introduction to GitHub\"! :wave:_\n\n**What is GitHub?**: GitHub is a collaboration platform that uses _[Git](https://docs.github.com/get-started/quickstart/github-glossary#git)_ for versioning. GitHub is a popular place to share and contribute to [open-source](https://docs.github.com/get-started/quickstart/github-glossary#open-source) software.\n\u003cbr\u003e:tv: [Video: What is GitHub?](https://www.youtube.com/watch?v=pBy1zgt0XPc)\n\n**What is a repository?**: A _[repository](https://docs.github.com/get-started/quickstart/github-glossary#repository)_ is a project containing files and folders. A repository tracks versions of files and folders. For more information, see \"[About repositories](https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories)\" from GitHub Docs.\n\n**What is a branch?**: A _[branch](https://docs.github.com/en/get-started/quickstart/github-glossary#branch)_ is a parallel version of your repository. By default, your repository has one branch named `main` and it is considered to be the definitive branch.  Creating additional branches allows you to copy the `main` branch of your repository and safely make any changes without disrupting the main project. Many people use branches to work on specific features without affecting any other parts of the project.\n\nBranches allow you to separate your work from the `main` branch. In other words, everyone's work is safe while you contribute. For more information, see \"[About branches](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches)\".\n\n**What is a profile README?**: A _[profile README](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme)_ is essentially an \"About me\" section on your GitHub profile where you can share information about yourself with the community on GitHub.com. GitHub shows your profile README at the top of your profile page. For more information, see \"[Managing your profile README](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme)\".\n\n![profile-readme-example](/images/profile-readme-example.png)\n\n### :keyboard: Activity: Your first branch\n\n1. Open a new browser tab and navigate to your newly made repository repository. Then, work on the steps in your second tab while you read the instructions in this tab.\n2. Navigate to the **\u003c \u003e Code** tab in the header menu of your repository.\n\n   ![code-tab](/images/code-tab.png)\n   \n3. Click on the **main** branch drop-down.\n\n   ![main-branch-dropdown](/images/main-branch-dropdown.png)\n   \n4. In the field, enter a name for your branch: `my-first-branch`.\n5. Click **Create branch: my-first-branch** to create your branch.\n\n   ![create-branch-button](/images/create-branch-button.png)\n   \n   The branch will automatically switch to the one you have just created. \n   The **main** branch drop-down bar will reflect your new branch and display the new branch name.\n   \n6. Move on to Step 2!\n\n   **Note**: If you made a public repository, and want to confirm you correctly set up your first branch, wait about 20 seconds then refresh this page (the one you're following instructions from). [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.\n\n\u003c/details\u003e\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Step 2 \u003e\u003e\u003e\n  Start this step by acknowledging the previous step.\n  Define terms and link to docs.github.com.\n--\u003e\n\n\u003cdetails id=2\u003e\n\u003csummary\u003e\u003ch2\u003eStep 2: Commit a file\u003c/h2\u003e\u003c/summary\u003e\n\n_You created a branch! :tada:_\n\nCreating a branch allows you to edit your project without changing the `main` branch. Now that you have a branch, it’s time to create a file and make your first commit!\n\n**What is a commit?**: A _[commit](https://docs.github.com/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)_ is a set of changes to the files and folders in your project. A commit exists in a branch. For more information, see \"[About commits](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)\".\n\n### :keyboard: Activity: Your first commit\n\nThe following steps will guide you through the process of committing a change on GitHub. A commit records changes in renaming, changing content within, creating a new file, and any other changes made to your project. For this exercise, committing a change requires first adding a new file to your new branch. \n\n1. On the **\u003c \u003e Code** tab in the header menu of your repository, make sure you're on your new branch `my-first-branch`.\n\n2. Select the **Add file** drop-down and click **Create new file**.\n\n   ![create new file option](/images/create-new-file.png)\n   \n3. In the **Name your file...** field, enter `PROFILE.md`.\n\n   **Note:** `.md` is a file extension that creates a Markdown file. You can learn more about Markdown by visiting \"[Basic writing and formatting syntax](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)\" in our docs or by taking the \"[Communicating using Markdown](https://github.com/skills/communicate-using-markdown)\" Skills course.\n   \n4. In the **Edit new file** area, copy the following content to your file:\n\n   ```\n   Welcome to my GitHub profile!\n   ```\n   \n   \u003cimg alt=\"profile.md file screenshot\" src=\"/images/my-profile-file.png\"/\u003e\n   \n5. For commits, you can enter a short commit message that describes what changes you made. This message helps others know what's included in your commit. GitHub offers a simple default message, but let's change it slightly for practice. First, enter `Add PROFILE.md` in the first text-entry field below **Commit new file** at the bottom of the page. Then, if you want to confirm what your screen should look like, expand the dropdown below.\n\n   \u003cdetails\u003e\n   \u003csummary\u003e Expand to see the screenshot.\u003c/summary\u003e\n   \u003cimg alt=\"screenshot of adding a new file with a commit message\" src=\"/images/commit-full-screen.png\" /\u003e\n   \u003c/details\u003e\n   \n6. In this lesson, we'll ignore the other fields and click **Commit new file**.\n7. Move on to Step 3!\n\n   **Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.\n\n\u003c/details\u003e\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Step 3 \u003e\u003e\u003e \n  Just a historic note: the previous version of this step forced the learner\n  to write a pull request description,\n  checked that `main` was the receiving branch,\n  and that the file was named correctly.\n--\u003e\n\n\u003cdetails id=3\u003e\n\u003csummary\u003e\u003ch2\u003eStep 3: Open a pull request\u003c/h2\u003e\u003c/summary\u003e\n\n_Nice work making that commit! :sparkles:_\n\nNow that you have made a change to the project and created a commit, it’s time to share your proposed change through a pull request!\n\n**What is a pull request?**: Collaboration happens on a _[pull request](https://docs.github.com/en/get-started/quickstart/github-glossary#pull-request)_. The pull request shows the changes in your branch to other people and allows people to accept, reject, or suggest additional changes to your branch. In a side by side comparison, this pull request is going to keep the changes you just made on your branch and propose applying them to the `main` project branch. For more information about pull requests, see \"[About pull requests](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)\" or watch the video linked below.\n\n### :keyboard: Activity: Create a pull request\n\nYou may have noticed after your commit that a message displayed indicating your recent push to your branch and providing a button that says **Compare \u0026 pull request**.\n\n![screenshot of message and button](/images/compare-and-pull-request.png)\n\nTo create a pull request automatically, click **Compare \u0026 pull request**, and then skip to step 6 below. If you don't click the button, the instructions below walk you through manually setting up the pull request.\n\n1. Click on the **Pull requests** tab in the header menu of your repository.\n2. Click **New pull request**.\n3. In the **base:** dropdown, make sure **main** is selected.\n4. Select the **compare:** dropdown, and click `my-first-branch`.\n\n   \u003cimg alt=\"screenshot showing both branch selections\" src=\"/images/pull-request-branches.png\" /\u003e\n   \n5. Click **Create pull request**.\n6. Enter a title for your pull request. By default, the title will automatically be the name of your branch. For this exercise, let's edit the field to say `Add my first file`.\n7. The next field helps you provide a description of the changes you made. Here, you can add a description of what you’ve accomplished so far. As a reminder, you have: created a new branch, created a file, and made a commit.\n\n   \u003cimg alt=\"screenshot showing pull request\" src=\"/images/Pull-request-description.png\" /\u003e\n   \n8. Click **Create pull request**. You will automatically be navigated to your new pull request.\n9. Move on to Step 4!\n\n   **Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one. As a perk, you may see evidence of GitHub Actions running on the tab with the pull request opened! The image below shows a line you might see on your pull request after the Action finishes running.\n   \n   \u003cimg alt=\"screenshot of an example of an actions line\" src=\"/images/Actions-to-step-4.png\"/\u003e\n\n\u003c/details\u003e\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Step 4 \u003e\u003e\u003e \n  Just a historic note: The previous version of this step required responding\n  to a pull request review before merging. The previous version also handled\n  if users accidentally closed without merging.\n--\u003e\n\n\u003cdetails id=4\u003e\n\u003csummary\u003e\u003ch2\u003eStep 4: Merge your pull request\u003c/h2\u003e\u003c/summary\u003e\n\n_Nicely done! :sunglasses:_\n\nYou successfully created a pull request. You can now merge your pull request.\n\n**What is a merge?**: A _[merge](https://docs.github.com/en/get-started/quickstart/github-glossary#merge)_ adds the changes in your pull request and branch into the `main` branch. For more information about merges, see \"[Merging a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request)\" or watch the video linked below.\n\nAs noted in the previous step, you may have seen evidence of GitHub Actions running which automatically progresses your instructions to the next step. You'll have to wait for it to finish before you can merge your pull request. It will be ready when the merge pull request button is green.\n\n![screenshot of green merge pull request button](/images/Green-merge-pull-request.png)\n\n### :keyboard: Activity: Merge the pull request\n\n1. Click **Merge pull request**.\n2. Click **Confirm merge**.\n3. Once your branch has been merged, you don't need it anymore. To delete this branch, click **Delete branch**.\n\n   \u003cimg alt=\"screenshot showing delete branch button\" src=\"/images/delete-branch.png\"/\u003e\n   \n4. Check out the **Finish** step to see what you can learn next!\n\n   **Note**: Like before, you can wait about 20 seconds, then refresh this page (the one you're following instructions from) and [GitHub Actions](https://docs.github.com/en/actions) will automatically close this step and open the next one.\n\n\u003c/details\u003e\n\n\u003c!-- \n  \u003c\u003c\u003c Author notes: Finish \u003e\u003e\u003e \n  Review what we learned, ask for feedback, provide next steps.\n--\u003e\n\n\u003cdetails id=X open\u003e\n\u003csummary\u003e\u003ch2\u003eFinish\u003c/h2\u003e\u003c/summary\u003e\n\n_Congratulations, you've completed this course and joined the world of developers!_\n\n\u003cimg src=https://octodex.github.com/images/collabocats.jpg alt=celebrate width=300 align=right\u003e\n\nHere's a recap of your accomplishments:\n\n- You learned about GitHub, repositories, branches, commits, and pull requests.\n- You created a branch, a commit, and a pull request.\n- You merged a pull request.\n- You made your first contribution! :tada:\n\n### What's next?\n\nIf you'd like to make a profile README, use the quickstart instructions below or follow the instructions in the [Managing your profile README](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme) article.\n\n1. Make a new public repository with a name that matches your GitHub username.\n2. Create a file named `README.md` in its root. The \"root\" means not inside any folder in your repository.\n3. Edit the contents of the `README.md` file.\n4. If you created a new branch for your file, open and merge a pull request on your branch.\n5. Lastly, we'd love to hear what you thought of this course [in our discussion board](https://github.com/skills/.github/discussions).\n\nCheck out these resources to learn more or get involved:\n- Are you a student? Check out the [Student Developer Pack](https://education.github.com/pack).\n- [Take another GitHub Skills course](https://github.com/skills).\n- [Read the GitHub Getting Started docs](https://docs.github.com/en/get-started).\n- To find projects to contribute to, check out [GitHub Explore](https://github.com/explore).\n\n\u003c/details\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Footer \u003e\u003e\u003e\n  Add a link to get support, GitHub status page, code of conduct, license link.\n--\u003e\n\n---\n\nGet help: [Post in our discussion board](https://github.com/skills/.github/discussions) \u0026bull; [Review the GitHub status page](https://www.githubstatus.com/)\n\n\u0026copy; 2022 GitHub \u0026bull; [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) \u0026bull; [MIT License](https://gh.io/mit)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwatching%2Fintro-to-github","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechwatching%2Fintro-to-github","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwatching%2Fintro-to-github/lists"}