A pull request (PR) is a way to propose changes to a repository. When you make changes in a forked or cloned repository, you can send a pull request to the original repository to suggest these changes. Pull requests allow collaboration and code review before merging changes.
A pull request is a method of submitting contributions to a project. Contributors request the repository owner to merge changes from their branch into the main project after review.
// Clone a forked repository from GitHub
git clone https://github.com/your-username/repository-name.git
// Navigate into the project directory
cd repository-name
// Create and switch to a new feature branch
git checkout -b feature/my-change
// Stage and commit your changes
git add .
git commit -m "Implemented new feature"
// Push the branch to your GitHub fork
git push origin feature/my-change
Once pushed, GitHub detects the new branch and prompts you to create a pull request. The changes are compared, reviewed, and can be merged once approved.