Exercise: Introduction To GitHub
Introduction to GitHub

Welcome to Your Skills Exercise!
👋 Hey there Louisojok! Welcome to your Skills exercise! If you're new to GitHub, you might find your fellow developers use issues to organize their work and collaborate. We will do the same! That's another lesson, but today, we will introduce you to the basics.
What is GitHub?
GitHub is a web-based platform for version control and collaboration on software development projects. It allows developers to store and manage their code in a centralized location, making it easier to collaborate with others and track changes to the codebase. GitHub provides a range of features, including:
- Version control: GitHub allows developers to track changes to their codebase over time, making it easier to identify and fix errors.
- Collaboration: GitHub enables multiple developers to work on the same project simultaneously, making it easier to collaborate and share code.
- Open-source: GitHub provides a platform for open-source projects, allowing developers to share their code with others and collaborate on a global scale.
Getting Started with GitHub
To get started with GitHub, you'll need to create an account. Here's a step-by-step guide:
- Create a GitHub account: Go to the GitHub website and sign up for an account. You can use your email address or your GitHub username and password to log in.
- Create a new repository: Once you've created your account, you can create a new repository. A repository is a container for your code, and it's where you'll store your project files.
- Initialize a new repository: To initialize a new repository, click on the "New" button and select "Repository". You'll be prompted to enter a name for your repository and choose a location for it.
- Create a new file: Once you've created your repository, you can create a new file. To do this, click on the "New file" button and enter a name for your file.
- Write some code: Now it's time to write some code! You can use any programming language you like, but for this exercise, we'll use Markdown.
Writing Markdown
Markdown is a lightweight markup language that's easy to read and write. It's commonly used for formatting text on the web, and it's a great language to learn if you're new to coding. Here's a brief introduction to Markdown:
- Headers: Headers are used to title your document. You can use the
#
symbol to create a header, like this:# Heading
. - Bold text: Bold text is used to emphasize important information. You can use double asterisks
**
to create bold text, like this:**This text is bold**
. - Italic text: Italic text is used to indicate that something is uncertain or unclear. You can use single asterisks
*
to create italic text, like this:*This text is italic*
. - Lists: Lists are used to present information in a clear and concise manner. You can use the
-
symbol to create a list, like this:- Item 1
. - Links: Links are used to reference other documents or websites. You can use the
[text](url)
syntax to create a link, like this:[Visit GitHub](https://github.com)
.
Committing Changes
Once you've written some code, you'll need to commit your changes. Committing changes is like saving your work, but it also allows you to track changes to your codebase over time. Here's how to commit changes:
- Stage your changes: To stage your changes, click on the "Stage" button. This will prepare your changes for committing.
- Commit your changes: To commit your changes, click on the "Commit" button. You'll be prompted to enter a commit message, which should describe the changes you've made.
- Push your changes: Once you've committed your changes, you can push them to GitHub. To do this, click on the "Push" button.
Conclusion
That's it for this exercise! You've learned the basics of GitHub, including how to create a repository, write Markdown, and commit changes. Remember to practice what you've learned, and don't be afraid to ask for help if you need it. Good luck, and have fun!
Next Steps
- Create a new repository: Create a new repository and practice writing Markdown.
- Commit changes: Commit changes to your repository and practice pushing changes to GitHub.
- Collaborate with others: Collaborate with others on a project and practice using issues to organize your work.
Tips and Resources
- GitHub documentation: Check out the GitHub documentation for more information on using GitHub.
- Markdown documentation: Check out the Markdown documentation for more information on using Markdown.
- GitHub tutorials: Check out the GitHub tutorials for more information on using GitHub.
Congratulations!
Frequently Asked Questions
Q: What is GitHub?
A: GitHub is a web-based platform for version control and collaboration on software development projects. It allows developers to store and manage their code in a centralized location, making it easier to collaborate with others and track changes to the codebase.
Q: What is a repository?
A: A repository is a container for your code, and it's where you'll store your project files. You can think of it as a folder on your computer, but instead of being on your local machine, it's stored online on GitHub.
Q: What is Markdown?
A: Markdown is a lightweight markup language that's easy to read and write. It's commonly used for formatting text on the web, and it's a great language to learn if you're new to coding.
Q: How do I create a new repository?
A: To create a new repository, follow these steps:
- Log in to your GitHub account.
- Click on the "New" button.
- Select "Repository".
- Enter a name for your repository.
- Choose a location for your repository.
Q: How do I write Markdown?
A: To write Markdown, follow these steps:
- Use the
#
symbol to create a header. - Use double asterisks
**
to create bold text. - Use single asterisks
*
to create italic text. - Use the
-
symbol to create a list. - Use the
[text](url)
syntax to create a link.
Q: How do I commit changes?
A: To commit changes, follow these steps:
- Stage your changes by clicking on the "Stage" button.
- Commit your changes by clicking on the "Commit" button.
- Enter a commit message that describes the changes you've made.
- Push your changes to GitHub by clicking on the "Push" button.
Q: What is a pull request?
A: A pull request is a way to request changes to a repository. It's like a ticket that you submit to the repository owner, asking them to review and merge your changes.
Q: How do I create a pull request?
A: To create a pull request, follow these steps:
- Log in to your GitHub account.
- Navigate to the repository you want to create a pull request for.
- Click on the "New pull request" button.
- Select the branch you want to create a pull request for.
- Enter a title and description for your pull request.
- Click on the "Create pull request" button.
Q: What is a fork?
A: A fork is a copy of a repository that you create in your own account. It's like a clone of the original repository, but it's stored in your own account.
Q: How do I create a fork?
A: To create a fork, follow these steps:
- Log in to your GitHub account.
- Navigate to the repository you want to fork.
- Click on the "Fork" button.
- Select the branch you want to fork.
- Click on the "Fork" button.
Additional Resources
- GitHub documentation: Check out the GitHub documentation for more information on using GitHub.
- Markdown documentation: Check out the Markdown documentation for more information on using Markdown.
- GitHub tutorials: Check out the GitHub tutorials for more information on using GitHub.
Conclusion
We hope this Q&A article has helped you learn more about GitHub and how to use it. Remember to practice what you've learned, and don't be afraid to ask for help if you need it. Good luck, and have fun!