Editing files in your repository

Miskatur Rahman
2 min readDec 28, 2020

You can edit files directly on GitHub in any of your repositories using the file editor.

***Note: If a repository has any protected branches, it can't be edited or uploaded files in the protected branch.

=> In your repository, browse to the file you want to edit.

=> In the upper right corner of the file view, click to open the file editor.

=> Edit file button
On the Edit file tab, make any changes you need to the file.

=> New content in file
Above the new content, click Preview changes.

=> File preview button
At the bottom of the page, type a commit message that describes the change you made to the file.

=> Commit message for your change
Below the commit message fields, click the email address drop-down menu and choose a Git author email address.

=> Commit branch options
Click Propose file change.

=> Propose file change button

--

--