Protocol.Land Docs
HomeBlogGit Repo
  • 👋Welcome to Protocol.Land
  • 🗄️Working with Repositories
    • Create a new repository
    • Fork a repository
    • Clone a repository
    • Import a repository from GitHub
    • Create a new branch
    • Update a repository’s general information
    • Add contributors to a repository
    • Tokenization
  • 📁Working with Files
    • Create a new file
    • Add file/ files
    • Edit a file
  • 💻Working with Pull Requests
    • Create a new pull request
    • Create a new pull request from a fork
    • Add reviewers to a pull request
    • Approve a pull request
    • Comment on a pull request
    • Merge a pull request
    • Close a pull request
    • Reopen a pull request
  • 📄Working with Issues
    • Create a new issue
    • Assign an issue
    • Comment on an issue
    • Close an issue
    • Reopen an issue
    • Create a new bounty
    • Close a bounty
  • 🚀Working with Deployments
    • Deploy a static page
    • Assign an ArNS name
  • working with organizations
    • Create a new organization
    • Create a new repository
    • Import a repository from GitHub
    • Add members to organization
    • See List of Organizations you are part of
    • Transfer your repo to organization
  • ℹ️Working with Profiles
    • Customize your profile details
    • Add a README for your profile
    • Explore contribution activity
Powered by GitBook
On this page
Edit on GitHub
  1. Working with Files

Edit a file

Edit a file in a repository using the web UI.

PreviousAdd file/ filesNextCreate a new pull request

Last updated 1 year ago

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:

  1. Navigate to the main page of the repository.

  2. Click on the file you wish to edit from the file list.

  3. You will be redirected to the file page.

  4. Click on the edit icon at the top right corner of the file tab.

  5. You will be redirected to the code editor for the file.

  6. Make changes to the code in the provided code editor.

  7. 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.

  8. Once you've made the necessary edits, you have the option to “Cancel Changes” or “Commit Changes” to the active branch.

  9. Click “Commit Changes”.

  10. You will be prompted with a modal to add a commit message.

  11. Type in the desired commit message that summarizes the changes.

  12. Preview the estimated cost of committing your changes by hovering over the information icon.

  13. Click “Commit changes”.

  14. You will be redirected to the file page where you can view the updated file content.

📁