Skip to content

Latest commit

 

History

History
50 lines (43 loc) · 2.31 KB

File metadata and controls

50 lines (43 loc) · 2.31 KB
title intro redirect_from versions topics shortTitle
Editing files
You can edit files directly on {% data variables.product.github %} in any of your repositories using the file editor.
/articles/editing-files
/articles/editing-files-in-your-repository
/github/managing-files-in-a-repository/editing-files-in-your-repository
/articles/editing-files-in-another-user-s-repository
/github/managing-files-in-a-repository/editing-files-in-another-users-repository
/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-your-repository
/github/managing-files-in-a-repository/managing-files-on-github/editing-files-in-another-users-repository
fpt ghes ghec
*
*
*
Repositories
Edit files

Editing files in your repository

Tip

{% data reusables.repositories.protected-branches-block-web-edits-uploads %}

Note

{% data variables.product.github %}'s file editor uses CodeMirror.

  1. In your repository, browse to the file you want to edit. {% data reusables.repositories.edit-file %}
  2. In the text box, make any changes you need to the file. {% data reusables.files.preview_change %} {% data reusables.files.write_commit_message %} {% data reusables.files.choose-commit-email %} {% data reusables.files.choose_commit_branch %} {% data reusables.files.propose_file_change %}

Editing files in another user's repository

When you edit a file in another user's repository, we'll automatically fork the repository and open a pull request for you.

  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="Edit file" %}. On the page that appears, click Fork this repository.
  3. In the text box, make any changes you need to the file. {% data reusables.files.preview_change %} {% data reusables.files.write_commit_message %} {% data reusables.files.choose-commit-email %}
  4. Click Propose changes.
  5. Type a title and description for your pull request.
  6. Click Create pull request.