You can add a new folder for your favourite programming (if not already present) language and start adding algorithms to the folder.
- Star this repository.
- Click on the fork button on the top right corner of this page.
- Now go to http://github.com/{your_username}/hacktoberfest2020-algorithms where you can see your own fork of this repo.
- Open the terminal and clone your fork using
git clone http://github.com/{your_username}/hacktoberfest2020-algorithms
-
Before you make any changes, keep your fork in sync to avoid merge conflicts:
git remote add upstream https://github.com/dscpvgcoet/hacktoberfest2020-algorithms.git git pull upstream main
If you run into a merge conflict, you have to resolve the conflict. There are a lot of guides online, or you can try this one by opensource.com.
-
Now go inside the directory "hacktoberfest2020-algorithms" and checkout to a new branch with name of your choice
git checkout -b {branch_name}
- Start adding/modifying your algorithms.
- Add the files you want to commit to the staging area.
git add {folder_name/file_name}
- Commit the changes
git commit -m '{Your commit message}'
- Push to GitHub.
git push origin {branch_name}
- Go to http://github.com/{your_username}/hacktoberfest2020-algorithms , on the left there is a button to change your branch. Click on it and select {branch_name}.
- Now you will be able see a button named "Pull request". Click on it.
- Add appropriate message and click the "Create Pull Request" button.