1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-another-users-repository.md
2021-06-24 11:02:53 -07:00

34 lines
1.6 KiB
Markdown

---
title: Editing files in another user's repository
intro: 'When you edit a file in another user''s repository, we''ll automatically [fork the repository](/articles/fork-a-repo) and [open a pull request](/articles/creating-a-pull-request) for you.'
redirect_from:
- /articles/editing-files-in-another-users-repository/
- /articles/editing-files-in-another-user-s-repository
- /articles/editing-files-in-another-users-repository
- /github/managing-files-in-a-repository/editing-files-in-another-users-repository
versions:
fpt: '*'
ghes: '*'
ghae: '*'
topics:
- Repositories
shortTitle: Edit another user's files
---
1. In another user's repository, browse to the folder that contains the file you want to edit. Click the name of the file you want to edit.
2. Above the file content, click {% octicon "pencil" aria-label="The edit icon" %}. At this point, GitHub forks the repository for you.
3. Make any changes you need to the file.
![New content in file](/assets/images/help/repository/edit-readme-light.png)
{% data reusables.files.preview_change %}
{% data reusables.files.write_commit_message %}
{% data reusables.files.choose-commit-email %}
6. Click **Propose file change**.
![Commit Changes button](/assets/images/help/repository/propose_file_change_button.png)
7. Type a title and description for your pull request.
![Pull Request description page](/assets/images/help/pull_requests/pullrequest-description.png)
8. Click **Create pull request**.
![Pull Request button](/assets/images/help/pull_requests/pullrequest-send.png)
## Further reading
* "[Editing files in your repository](/articles/editing-files-in-your-repository)"