Creating a Pull Request on GitHub
-
Fork the Repository: Create your own copy of the target repository on GitHub.
-
Clone Your Fork: Clone your forked repository to your local machine:
git clone {your-fork-url}
-
Create a New Branch: Create a new branch for your changes:
git checkout -b {your-branch-name}
-
Make Your Changes: Make your desired code changes, commit them, and push the branch to your fork:
git add . git commit -m "Your descriptive commit message" git push origin {your-branch-name}
-
Create a Pull Request on GitHub: Navigate to your forked repository on GitHub, and you should see a banner prompting you to create a pull request. Click the button to open the pull request form. Select the target branch (usually
main
ordevelop
) and add a title and description or optionaly images with changes. Submit the pull request.
Useful Tips
- Use clear and concise commit messages.
- Keep your branches small and focused on a single feature or bug fix.
- Keep the file formatting with the person you made the pull request to