To open a Pull Request (PR), follow these steps:
-
Fork the Repository: Navigate to the GitHub page of the project and click the "Fork" button in the top-right corner. This creates a copy of the repository in your GitHub account.
-
Clone the Forked Repository: Clone the repository you just forked to your local machine. Use the
git clone
command followed by the URL of your forked repository. -
Create a New Branch: Navigate to the cloned directory on your local machine. Before making changes, create a new branch using the
git checkout -b your-branch-name
command. -
Make Your Changes: Make the necessary changes in the code.
-
Commit Your Changes: After making changes, add them using the
git add .
command, and then commit them using thegit commit -m "Your commit message"
command. -
Push Changes to GitHub: Push your changes to your forked repository on GitHub using the
git push origin your-branch-name
command. -
Open a Pull Request: Go to the original repository on GitHub. You should see a "Compare & pull request" button for your branch. Click it.
-
Review and Submit: Review your changes and click "Create pull request" to submit your PR.