Skip to content

Commit 2ec39f3

Browse files
committed
Polish up "Update your pull request from your fork" section
1 parent 4872860 commit 2ec39f3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/contributing/first-time.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,19 @@ Once you have completed, tested, and linted your code, and created a {ref}`contr
222222
1. Members who subscribe to the repository will receive a notification and review your request.
223223

224224

225+
(update-your-pull-request-from-your-fork-label)=
226+
225227
### Update your pull request from your fork
226228

227229
Often another pull request will get merged before yours, and your pull request will fall behind the main branch.
228-
To keep your pull request current, you can issue the following git commands.
230+
To keep your pull request current, you can issue the following git commands, assuming you have already checked out the branch for the pull request that you want to update.
231+
These commands will only work if you have {ref}`set-up-your-environment-label` as mentioned above.
229232

230233
```shell
231234
# Assume `main` is the main branch.
232-
git checkout main
233-
git pull
234-
git checkout my-branch-name
235-
git merge main
236-
git push origin my-branch-name
235+
git fetch upstream
236+
git merge upstream/main # You might need to resolve conflicts here.
237+
git push
237238
```
238239

239240
Welcome to the Plone community, and thank you for contributing!

0 commit comments

Comments
 (0)