Welcome to my ShopNex! 😍
We appreciate your interest in contributing.😊
This guide will help you get started with the project and make your first contribution.
- Star this repository.
- Fork this repository.
- Clone the forked repository.
git clone https://github.com/<your-github-username>/Shopnex.git
- If you have already forked the project, update your copy before working.
git remote update
- Navigate to the project directory.
cd Shopnex
- Set an upstream with the parent repository and local repository.
git remote add upstream https://github.com/JiyaGupta-cs/Shopnex.git
- If you have altered it, you have to rebase it.
git rebase upstream/<branch_name>
- Create a new branch.
git checkout -b <your_branch_name>
- Make changes.
- Stage your changes and commit
git add .
git commit -m "<your_commit_message>"
- Push your local commits to the remote repo.
git push -u origin <your_branch_name>
- Create a Pull Request.
- Congratulations! 🎉 you've made your contribution.
-
Open GitHub Desktop: Launch GitHub Desktop and log in to your GitHub account if you haven't already.
-
Clone the Repository:
- If you haven't cloned the repository yet, you can do so by clicking on the "File" menu and selecting "Clone Repository."
- Choose the repository from the list of repositories on GitHub and clone it to your local machine.
-
Switch to the Correct Branch:
- Ensure you are on the branch that you want to submit a pull request for.
- If you need to switch branches, you can do so by clicking on the "Current Branch" dropdown menu and selecting the desired branch.
-
Make Changes: Make your changes to the code or files in the repository using your preferred code editor.
-
Commit Changes:
- In GitHub Desktop, you'll see a list of the files you've changed. Check the box next to each file you want to include in the commit.
- Enter a summary and description for your changes in the "Summary" and "Description" fields, respectively. Click the "Commit to " button to commit your changes to the local branch.
-
Push Changes to GitHub: After committing your changes, click the "Push origin" button in the top right corner of GitHub Desktop to push your changes to your forked repository on GitHub.
-
Create a Pull Request:
- Go to the GitHub website and navigate to your fork of the repository.
- You should see a button to "Compare & pull request" between your fork and the original repository. Click on it.
-
Review and Submit:
- On the pull request page, review your changes and add any additional information, such as a title and description, that you want to include with your pull request.
- Once you're satisfied, click the "Create pull request" button to submit your pull request.
-
Wait for Review: Your pull request will now be available for review by the project maintainers. They may provide feedback or ask for changes before merging your pull request into the main branch of the repository.
- The contributors will be allowed to work on the issue ONLY after it has been assigned to them.
- The contributions will be counted only for the time period of the event, after the time period ends contributions can be taken in but wont be counted for the final evaluation.
- Tampering or any unethical behaviour to the files or other participants will result in immediate disqualification.
- Each PR must be associated with only ONE issue.
- Don't open pull requests with minor text edits on other people's repositories.
- Don't create multiple issue request for one issue.
- Please follow our project's Code of Conduct while contributing.
- Treat all contributors and users with respect and create a positive and inclusive environment for everyone.
Thank you for your contribution!!
You can refer to the following articles on the basics of Git and GitHub and also contact the Project Mentors, in case you are stuck:
How to create a Issue
Forking a Repo
Cloning a Repo
How to create a Pull Request
Getting started with Git and GitHub
It always takes time to understand and learn. So, don't worry at all. We know you have got this! 💪