Add file/ files

Add one or more files or folders to a repository.

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. Click “Browse Files” and select the desired file/ files or even entire folders.

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

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

  4. Click “Upload”.

  5. 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 git remote helper 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.

Last updated