What is hacktoberfest? learn more here
Repository for you to raise a Pull Request to practice open-source! 🎉
Add your name to the alphabetical list and, optionally, a link to your GitHub account (in alphabetical order below your letter too)
- Fork the project using the gray
Fork
button in the top right of this page. - Make any changes in your forked repository.
- On this repo, click
Pull Requests
(which is the third option at the top of this page after the optionsCode
andIssues
) and raise a Pull Request by clicking the greenNew Pull Request
button and selecting your fork from the right dropdown field.
You can ask questions by raising an issue.
-
Click on the green
Code
button, then either the HTTPS or SSH option and, click the icon to copy the URL. Now you have a copy of the project. Thus, you can play around with it locally on your computer. -
Run the following commands into a terminal window (Command Prompt, Powershell, Terminal, Bash, ZSH). Do this to download the forked copy of this repository to your computer.
git clone https://github.com/YOUR_GITHUB_USERNAME/hacktoberfest-practice.git
- Switch to the cloned folder. You can paste this command into the same terminal window.
cd hacktoberfest-practice
- Make a new branch. Your username would make a good branch because it's unique.
git checkout -b <name-of-new-branch>
-
Open the
README.md
file -
Add your name to the section that matches your Initial in this list. Then, add your name in alphabetical order. Then save your changes.
-
For example
- [Full Name](https://github.com/your-username)
-
Stage your changes.
git add README.md
or
git add .
- Commit the changes.
git commit -m "Add <your-github-username>"
- Check the status of your repository.
git status
- The response should be like this:
On branch <name-of-your-branch>
nothing to commit, working tree clean
- Pushing your repository to GitHub.
git push origin <name-of-your-branch>
or
git branch -M main
git push -u origin main
If you get an error message like the one below, you probably forgot to fork the repository before cloning it. It is best to start over and fork the project repository first.
ERROR: Permission to YouCodeSchool/hacktoberfest.git denied to <your-github-username>.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
-
On the GitHub website, navigate to your forked repo - on the top of the files section, you'll notice a new section containing a
Compare & Pull Request
button! -
Click on that button, this will load a new page, comparing the local branch in your forked repository against the main branch in the EddieHub Hacktoberfest repository. Accept the default values in the dropdown boxes and click the green
Create Pull Request
button. Note: A pull request allows to merge your changes with the original project repo. -
Your pull request will be reviewed and then eventually merged.
Hurray! You successfully have made your first contribution! 🎉
A GitHub conflict is when people make changes to the same area or line in a file. This must be fixed before it is merged in order to prevent collision in the main branch.
-
To read more about this, go to GitHub Docs - About Merge Conflicts
-
To find out about how to fix a Git Conflict, go to GitHub Docs - Resolve Merge Conflict
-
You can also ask for help by submiting an issue!
A | B | C | D | E |
---|---|---|---|---|
F | G | H | I | J |
K | L | M | N | O |
P | Q | R | S | T |
U | V | W | X | Y |
Z |