Welcome to “Introduction to GitHub”! :wave:
What is GitHub?: GitHub is a collaboration platform that uses Git for versioning. GitHub is a popular place to share and contribute to open-source software.
:tv: Video: What is GitHub?
What is a repository?: A repository is a project containing files and folders. A repository tracks versions of files and folders. For more information, see “About repositories” from GitHub Docs.
What is a branch?: A 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.
Branches 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”.
What is a profile README?: A 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”.
Navigate to the < > Code tab in the header menu of your repository.
Click on the main branch drop-down.
my-first-branch
. In this case, the name must be my-first-branch
to trigger the course workflow.Click Create branch: my-first-branch to create your branch.
The branch will automatically switch to the one you have just created. The main branch drop-down bar will reflect your new branch and display the new branch name.