Edit a file
Edit a file in a repository using the web UI.
Last updated
Edit a file in a repository using the web UI.
Last updated
Editing files directly within your repository on Protocol.Land is a common task that allows for quick updates and iterations.
Follow these steps to edit files within repositories on Procotol.Land:
Navigate to the main page of the repository.
Click on the file you wish to edit from the file list.
You will be redirected to the file page.
Click on the edit icon at the top right corner of the file tab.
You will be redirected to the code editor for the file.
Make changes to the code in the provided code editor.
The “Preview” tab in the editor shows the updated markdown version for files with the `.md` extension. For other file types, it shows a diff view of the code highlighting the changes made.
Once you've made the necessary edits, you have the option to “Cancel Changes” or “Commit Changes” to the active branch.
Click “Commit Changes”.
You will be prompted with a modal to add a commit message.
Type in the desired commit message that summarizes the changes.
Preview the estimated cost of committing your changes by hovering over the information icon.
Click “Commit changes”.
You will be redirected to the file page where you can view the updated file content.