Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions guide/05-first-pull-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,17 @@ git push --force-with-lease

`--force-with-lease` is the safe way to update a branch you rewrote; it refuses to overwrite commits you do not have locally. Some projects prefer merging `upstream/main` into your branch instead of rebasing; follow their guide.

## Small doc fixes without Git

For a typo or a broken link you can skip the clone entirely and do it in the browser:

1. Open the file on GitHub in the original repository and click the pencil icon. If you can't push there, GitHub forks the repository for you.
2. Make the change and check the Preview tab.
3. Click "Commit changes...", choose "Create a new branch", and give it a short name like `fix-readme-typo`.
4. Click "Propose changes", then "Create pull request" and fill in the template.

This only suits small text changes. Anything that needs a build or tests should go through the steps above, so you can run the checks before you push.

## Checklist

- [ ] Branch created from the latest upstream default branch.
Expand Down
Loading