Thank you for considering contributing to CosmoXplore! We're excited to have you on board. Here are some guidelines to help you get started. Please read these steps carefully to ensure a smooth contribution process.
-
Fork the Repository 🍴
- Go to the CosmoXplore repository.
- Click the
Fork
button at the top right of the page.
-
Clone the Forked Repository 📂
git clone https://github.com/your-username/cosmoXplore.git cd cosmoXplore
-
Create a New Branch 🌿
- It's good practice to create a new branch for your work. This makes it easier to manage and track your changes.
git checkout -b my-new-feature
-
Make Your Changes ✨
- Make the necessary changes to the codebase.
- Ensure your code follows the project's coding standards and guidelines.
-
Stage and Commit Your Changes 📝
- Add your changes to the staging area:
git add .
- Commit your changes with a descriptive message. Use the
-s
flag to sign off your commit:git commit -s -m "Add feature XYZ"
- Add your changes to the staging area:
-
Push Your Changes 🚀
- Push your changes to your forked repository:
git push origin my-new-feature
- Push your changes to your forked repository:
-
Create a Pull Request 🔄
- Go to your forked repository on GitHub.
- Click the
Compare & pull request
button. - Provide a clear and descriptive title for your pull request.
- Explain your changes in the description. Include any relevant details or issues that your changes address.
- Submit the pull request.
Alternatively use GitHub Desktop
Launch GitHub Desktop and log in to your GitHub account.
If you haven't cloned the ResourceHub repository yet, you can do so by
- Clicking on the "File" menu and selecting "Clone Repository."
- Choose the ResourceHub repository from the list of repositories on GitHub and clone it to your local machine.
- 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 your changes to the code or files in the repository using your preferred code editor.
- 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.
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.
- Go to the GitHub website and navigate to your fork of the ResourceHub repository.
- You should see a button to "Compare & pull request" between your fork and the original repository. Click on it.
- 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.
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 ResourceHub repository.
- Write Clear Commit Messages: Keep your commit messages concise but informative.
- Follow Code Standards: Ensure your code adheres to the project's coding standards.
- Test Your Changes: If applicable, make sure to test your changes before submitting a pull request.
- Stay Updated: Pull the latest changes from the original repository before starting your work to avoid conflicts.
git pull upstream main
If you have any questions or need further assistance, feel free to open an issue in the repository or reach out to the maintainers. We're here to help!
Happy coding! 🎉
CosmoXplore Team