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
  • Add one or more files to a repository using the web UI
  • Add and update files to a repository using the command line
Edit on GitHub
  1. Working with Files

Add file/ files

Add one or more files or folders to a repository.

PreviousCreate a new fileNextEdit a file

Last updated 1 year ago

Add one or more files to a repository using the web UI

Follow these steps to upload one or more files to your repository on Protocol.Land using the web UI:

  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 “Upload files” from the modal you are prompted with.

  3. You will be prompted with another modal for file selection.

  4. Click “Browse Files” and select the desired file/ files or even entire folders.

  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 “Upload”.

  8. You will be redirected to the main page of the repository, where the files list of the active branch will now include your newly uploaded file(s).

Add and update files to a repository using the command line

Follow these steps to add and update files to your repository on Protocol.Land using the command line:

Note: Ensure you have the installed and properly configured to interact with repositories hosted on Protocol.Land using the command line.

  1. In your local repository, make the desired changes to existing files or add new files to the project.

  2. Open your command line.

  3. Stage file(s) for commit in your local repository with the following command:

git add .
  1. Commit the staged file(s) as follows along with a commit message that summarizes the changes:

git commit -m “Update files”
  1. Push your changes from the local repository to Protocol.Land:

git push origin <your_branch_name>
  1. The pushed changes will be updated in the files list of the working branch.

📁
git remote helper