This repository serves as a learning tool for new contributors to open-source, but pull requests here won’t count toward Hacktoberfest.
-
Fork this repository on GitHub by clicking the Fork button in the top right of this page.
-
Clone your forked repo to your local machine.
git clone https://github.com/YOUR-USERNAME/Hello-World.git
ReplaceYOUR-USERNAME
above with your GitHub username. -
Create a new branch.
git checkout -b new-branch
-
Add your contributions.
Have a look at CONTRIBUTING.md. There are 3 easy ways to contribute to this project:- Add a "Hello, World!" program in any language you like.
- Add your name to the CONTRIBUTORS.md file.
- Add your profile page to the profiles directory.
-
Commit and push your changes.
git add -A
git commit -m "Your commit message"
git push --set-upstream origin new-branch
The git add <file_name>
command lets you add a file to the staging area. You can think of the staging area as a step before the commit process in git.
As long as a changeset is in the staging area, git allows you to edit it as you like.
The git add -A
command however, finds all new and updated files everywhere throughout the project and add them to the staging area.
- Inspecting a repository
git status
The git status command displays the state of the working directory and the staging area. It simply shows you what's been going on with git add and git commit.
git log
Using the git log command, you can view the entire commit history using the default formatting.
-
Create a Pull Request by navigating to your forked repository and clicking the New pull request button on your left-hand side of the page.
-
Add in a title, edit the PR template, and then press the Create pull request button.
-
Wait for your Pull Request to be reviewed and merged.
-
Congratulations! You just opened a Pull Request.
Add your Hello World
program to the code directory in any language of your choice.
Remember to add your program in the particular language folder.
The file name should not match with an already present file.
If there is no language folder, make one, then add into it.
Add your name to the CONTRIBUTORS.md file using the below example:
- [Name](Link to GitHub profile)
Please follow alphabetical order.
Add your profile page named Your_Name.md
to the profiles directory. Here is an example to get you started:
## Your Name
### Bio
A short line about you.
### Location
Home Sweet Home.
### Projects
The super cool projects that you have built.
### Hobbies & Interests
The super awesome things that intrigue you and bring you joy.
### Profiles
[![GitHub][github-img]](Link to GitHub profile)
[![Twitter][twitter-img]](Link to Twitter profile)
<!-- Don't edit the below 2 lines -->
[twitter-img]: https://i.imgur.com/wWzX9uB.png
[github-img]: https://i.imgur.com/9I6NRUm.png
Choose one of above or all 3, make a pull request for your contributions and wait for it to be merged!
- ⭐ Go ahead and star this repository if you had fun! ⭐
- If you liked contributing to this project, please share and star this project to help as many people as possible to get started in Open Source.
- Browse more such issues to contribute to on GitHub.
🎊 🎉 Happy Contributing 🎉 🎊