Follow this step-by-step guide to contribute to Hypergraphx.
If you haven't already, create a GitHub account at GitHub.com.
- Go to the main page of the Hypergraphx repository.
- In the top-right corner of the page, click on the "Fork" button. This will create a copy of the repository in your GitHub account.
- Navigate to your forked repository in your GitHub account.
- Click the "Code" button and copy the URL.
- Open your terminal and navigate to the directory where you want to clone the repository.
- Run the following command:
git clone [URL]
Replace [URL]
with the URL you copied.
To keep your forked repository updated with the changes from the original repository, you need to set an upstream remote:
- Navigate to the directory of your cloned repository in the terminal.
- Run the following command:
git remote add upstream https://github.com/HGX-Team/hypergraphx.git
Before making any changes, it's a good practice to create a new branch:
- Navigate to the directory of your cloned repository in the terminal.
- Run the following command to create and switch to a new branch:
git checkout -b your-branch-name
- Edit the files or add new files as required.
- Once you've made your changes, save them.
- In the terminal, navigate to the directory of your cloned repository.
- Run the following commands to add and commit your changes:
git add .
git commit -m "Your commit message here"
- Push your changes to your forked repository on GitHub:
git push origin your-branch-name
- Go to your forked repository on GitHub.
- Click on the "Pull requests" tab and then click on the "New pull request" button.
- Ensure the base repository is the original Hypergraphx repository and the base branch is the branch you want to merge
your changes into (usually
main
). - Ensure the head repository is your forked repository and the compare branch is the branch you made your changes in.
- Click on the "Create pull request" button.
- Fill in the PR title and description, explaining your changes.
- Click on the "Create pull request" button to submit your PR.
- The maintainers of the Hypergraphx repository will review your PR.
- They might request some changes or improvements. If so, make the required changes in your branch, commit them, and push them to GitHub. Your PR will be automatically updated.
Once your PR is approved, the maintainers will merge it into the main branch of the Hypergraphx repository.
Note: Always follow the contribution guidelines provided by the repository maintainers, and always be respectful and constructive in your interactions.