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

Create a new file

Create and add a new file to a repository using the web UI.

PreviousTokenizationNextAdd file/ files

Last updated 1 year ago

Creating and adding new files to your repository is an integral part of updating your project's content.

Follow these steps to add a file to your repository on Protocol.Land:

  1. Navigate to the main page of the repository and click “Add file” located on the top-left corner above the list of files.

  2. Click “Create new file” from the modal you are prompted with.

  3. You will be redirected to the file creation page.

  4. Type in the desired file name along with its extension in the provided input field. You can also provide a path along with the file name like `folder/filename.ext` to create folders within the repository.

Note: The files and folders are created relative to the file path you click the “Create new file” in. If a folder already exists, it will simply add the file to it based on the provided path.

  1. Type in your code in the provided code editor.

  2. After making the changes, you have the option to “Cancel Changes” or “Commit Changes” to the active branch.

  3. Click “Commit Changes”.

  4. A modal will prompt you to add a commit message.

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

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

  7. Click “Commit changes”.

  8. You will be redirected to the main page of the repository, where the updated files list of the active branch will now include the newly created file.

📁