This documentation contains a set of guidelines to help you during the contribution process.
Below you will find the process and workflow used to review and merge your changes.
- Find/Create an issue
- Take a look at the Existing Issues or create your own Issues!
- Wait for the Issue to be assigned to you after which you can start working on it.
- Note : Every change in this project should/must have an associated issue.
-
Fork the repository by clicking on the "Fork" button at the top right corner of the page.
-
Once you are in your fork the url should look something like
https://github.com/<YOUR-USERNAME>/ML-Nexus/
-
Go to preferred folder in your computer and paste the following command (Only one of it if you don't have ssh setup then go with HTTP command)
- For HTTP
git clone https://github.com/<YOUR-USERNAME>/ML-Nexus.git
- For SSH
git clone [email protected]:<YOUR-USERNAME>/ML-Nexus.git
- Now enter the folder by running the following command
cd ML-Nexus
-
Now you are in the
ML-Nexus
folder -
Now go ahead and create a new branch, then switch to that branch.
git checkout -b fix-issue-<ISSUE-NUMBER>
-
Make your changes to the codebase. Test your changes to make sure they work as expected.
-
After done you can now push this changes. for doing that follow the following command chain
git status
(Shows the changed files)git add .
(Will add all the files to staging area)git commit -m "feat/docs/fix: :emoji-name: <EXPLAIN-YOUR_CHANGES>"
git push origin fix-issue-<ISSUE-NUMBER>
- NOTE: A PR should have only one commit. Multiple commits should be squashed.
- Create a Pull Request:
- Go to your forked GitHub repository and navigate to the Pull Request section.
- Click on the pop-up that says "Pull Request" to be redirected to the pull request page.
- Fill in the form template of the pull request, adding a title and description that explain your contribution.
- Include screenshots if they help clarify the enhancement/implementation/bug/documentation.
- Click on Submit to create the pull request*
-
Hurrey! You just did your contribution to this project 🎉
-
Wait for your pull request to be reviewed and merged.
NOTE: Please make sure to follow the Code of conduct while contributing.
-
Follow steps 1 to 3 above, to fork the repository.
-
Navigate to the forked repository i.e.
https://github.com/<YOUR-USERNAME>/ML-Nexus/
-
Click Code, then click Create codespace on master.
-
A new codespace will be created.
-
Follow steps 6 to 9 above using the terminal in the codespace. Instead of step 9 you can also directly create a PR through codespace by going to the Source Control view in Activity Bar.
-
Open GitHub Desktop and log in to your GitHub account.
-
Make sure you are on the "Current Repository" view. If not, go to "File" and select "Add Local Repository" to add your repository.
-
In the "Current Repository" view, ensure you are on the branch that you want to submit a pull request for. If you're not on the correct branch, use the "Branch" menu to switch to the correct branch.
-
Once you're on the correct branch, make your changes and commit them to the branch. You can do this by clicking the "+" button in the upper-left corner of the GitHub Desktop window, making your changes, and then entering a commit message.
-
After you've made your changes and committed them, click the "Push origin" button in the top-right corner of the GitHub Desktop window. This will push your changes to the remote repository on GitHub.
-
Now, go to the GitHub website, navigate to your fork of the repository, and you should see a button to "Compare & pull request" between your fork and the original repository, click on it.
-
On the pull request page, you can review your changes and add any additional information, such as a title and a description, that you want to include with your pull request.
-
Once you're satisfied with your pull request, click the "Create pull request" button to submit it.
Note: In order to create a pull request, you must have a fork of the original repository in your GitHub account and you must have made the changes in that forked repository.
You can refer to the following articles on basics of Git and Github and also contact the Project Mentors, in case you are stuck:
- Watch this video to get started, if you have no clue about open source
- Forking a Repo
- Cloning a Repo
- How to create a Pull Request
- Getting started with Git and GitHub
- Learn GitHub from Scratch
Hope you will learn something new while contributing in this project!!😇😇😇😇