Here’s a step-by-step guide on how to fork and clone the registry repository from GitHub:
Step 1: Fork the Repository
Go to the Repository:
- Visit the repository page for Hyperlane’s registry, for example, the Hyperlane Registry GitHub.
Fork the Repository:
- In the top-right corner of the repository page, you'll see a "Fork" button. Click on it. This creates a personal copy of the repository under your GitHub account.
Step 2: Clone the Repository to Your Local Machine
Go to Your Forked Repository:
- After forking the repository, navigate to your forked version (it should be located under your GitHub username, e.g.,
https://github.com/your-username/hyperlane-registry
).
- After forking the repository, navigate to your forked version (it should be located under your GitHub username, e.g.,
Get the Clone URL:
- On your forked repository page, click the "Code" button (usually green) and copy the URL (you can choose between HTTPS, SSH, or GitHub CLI). The URL will look something like this:
https://github.com/your-username/hyperlane-registry.git
.
- On your forked repository page, click the "Code" button (usually green) and copy the URL (you can choose between HTTPS, SSH, or GitHub CLI). The URL will look something like this:
Open Terminal or Git Bash:
- On your local computer, open a terminal window (Command Prompt, Git Bash, or any command-line interface that supports Git).
Run the Clone Command:
In the terminal, navigate to the folder where you want to store the cloned repository. Then, use the following command to clone the repository:
bashCopy codegit clone https://github.com/your-username/hyperlane-registry.git
This will download all the repository files to your local machine.
Step 3: Navigate to the Cloned Repository
Change Directory:
After cloning, you’ll need to navigate to the directory where the repository was cloned:
bashCopy codecd hyperlane-registry
Now, you have successfully forked and cloned the repository to your local machine!
Step 4: Make Changes and Push
Make Your Changes:
- You can now modify files, add content, or make changes as needed for your contribution.
Add and Commit Changes:
Once you’ve made your changes, use the following commands to add and commit them:
bashCopy codegit add . git commit -m "Your descriptive commit message"
Push to Your Forked Repository:
Push your changes to your forked GitHub repository:
bashCopy codegit push origin main
Step 5: Create a Pull Request (PR)
Go to Your Forked Repository on GitHub:
- Visit your forked repository on GitHub.
Open a Pull Request:
- GitHub will usually display an option to "Compare & pull request" after you push your changes. Click that button to create a pull request (PR) to the original repository.
Submit the Pull Request:
- Add a title and description to your pull request, then submit it. The maintainers of the original repository will review and, if everything is good, merge your changes.
That’s it! You’ve now forked, cloned, and contributed to a GitHub repository.