/Hacktober2021

Contribute in Open Source Projects 2021

Primary LanguageJupyter NotebookMIT LicenseMIT

Hacktoberfest 2021 is here !!!

Welcome to Hacktoberfest 2021.

Aim of this repository is to help someone to learn, participate in Hacktober and contribute their code. Any Program in any language accecpted. If you can explain your code with submission of it that would be better for beginners to understand. This is the platform to share your code. So, share it.

Requirements

  1. Must have a github account.
  2. Latest git software must be installed.
  3. Knowledge of git and github.
  4. Knowledge about some programming languages to contribute.
  5. Coding IDE (recommended VS Code).

What is Hacktoberfest?

Hacktoberfest, in its 8th year, is a month-long celebration of open source software run by DigitalOcean. During the month of October, we invite you to join open-source software enthusiasts, beginners, and the developer community by contributing to open-source projects. You can do this in a variety of ways:

  • Prepare and share your project for collaboration
  • Contribute to the betterment of a project via pull requests
  • Organize an event
  • Mentor others
  • Donate directly to open source projects

How to get started (Follow the steps)

0. Register for Hacktoberfest

https://hacktoberfest.digitalocean.com/

1. Give this Project a Star ⭐

If you liked working on this repo, please share this repo as much as you can and star this repo to help as many people in opensource as you can.

2. Fork Repository

You can fork repository in which you want to contribute. fork:- (means) it create a copy of repository in your account to commit.

3. Clone Repository

after forking type following command in terminal to clone in your pc

git clone https://github.com/user-name/Hacktober2020.git

replace user-name with your github username

or

you can get a link from green button click to copy that link that link must be from your own forked copy.

4. Create branch

Type following command in terminal window

git checkout -b new-branch-name

5. Add code in respective languages folder

Once you have completed these steps, you are ready to start contributing whatever programming language you know, you can contribute your code in that. However, Your code files must be in respective folder. By doing this repository will be organized and well maintained. hope you follow this. I'll add your namme in contributors list as you start contibuting.

6. Commit Changes

Type following commands

git add .
git commit -m "message about commit"

7. Configure a Remote for the Fork

Next, you’ll have to specify a new remote upstream repository for us to sync with the fork. This will be the original repository that you forked from. You’ll have to do this with the git remote add command.

git remote add upstream https://github.com/ALLINONE4298/Hacktober2021.git

In this example, upstream is the shortname we have supplied for the remote repository since in terms of Git, “upstream” refers to the repository that you cloned from. If you want to add a remote pointer to the repository of a collaborator, you may want to provide that collaborator’s username or a shortened nickname for the shortname.

8. Pull changes

To get latest code Type following command

git pull upstream main

9. Push changes to Github

Type following command

git push --set-upstream origin new-branch-name

10. Create Pull Request

At this point, you are ready to make a pull request to the original repository.

You should navigate to your forked repository, and press the “New pull request” button on your left-hand side of the page.

11. And wait for owner to merge

If there is no merge conflict then owner will merge your pull request. Have patience and contribute more.

Hurray!! You just successfully create your first pull request

Disclaimer

This is Just for Beginners to help for their contributions and make them familiar with open source. This is a free platform to make mistakes and learn from them.