🐙 GitHub - Creating Pull Requests
Creating Pull Requests
Updated at 2015-03-06 17:49
This is a checklist how to create a pull request in GitHub.
- Fork the repository using GitHub's web interface
GitHub -> Repository -> Fork - Download the new fork to local environment.
git clone [email protected]:username/repositoryname.git cd repositoryname - Create a development branch.
git checkout -b my-feature - Start development and split your changes into small commits.
git add file.md git commit -m "What you did" - After you are done with your changes, update your local master.
git checkout master git pull upstream - Move your commits after the possible master changes with rebase.
git checkout my-feature git rebase master - Push your branch to the forked repository in GitHub.
git push origin my-feature - Create a pull request using GitHub's web interface.
GitHub -> New pull request -> Compare across forks -> Select your fork and branch