...
- Generating a Patch from a Clone
- Generating a GitHub Pull-Request from a Fork
- Generating a Textual GIT Pull-Request from a Clone
Before Submitting Your Changes
You need to ensure that the changes you are going to submit do not conflict with the repository and are ready for a clean merge.
This is achieved by rebasing your commits on top of the current upstream branch.
Code Block | ||||
---|---|---|---|---|
| ||||
git fetch upstream # First get the latest changes.
git rebase upstream/<branch> # Rebase on top of upstream's branch, could be "master".
... # Fix any conflicts then run git rebase --continue
git push --force-with-lease origin <branch> # Push your changes to your feature branch.
# A force push is necessary as the history just changed.
|
Generating a Patch from a Clone
...