@7i7o/git-remote-proland
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Git Remote Proland

A basic git-remote-helper for Protocol Land remotes

Requirements

  • git
  • node
  • npm, yarn or pnpm

This is a tool to allow git to communicate and sync Protocol Land repos.

You need node installed in your system. We recommend using nvm, a powerful node version manager.

Once you have node running in your system, please install a node package manager such as npm, yarn or pnpm.

Installation

Using npm

npm install --global @7i7o/git-remote-proland

Using yarn

yarn global add @7i7o/git-remote-proland

Using pnpm

pnpm add --global @7i7o/git-remote-proland

Setup Arweave Wallet keyfile

For git push or write access to repos, you need an Arweave wallet keyfile.

Asumming you have your Arweave wallet keyfile stored in ~/private_folder/jwk_keyfile.json, you can set up your keyfile path using git config:

git config --global --add protocol.land.keyfile ~/private_folder/jwk_keyfile.json

NOTE: This adds the keyfile path globally for all repos. If you want to use them discretionally per repo, you can remove the --global modifier in the git config command.

Usage

Once the package is installed you'll have a command git-remote-proland available in your PATH to be run from any folder you are working on.

This allows git to sync to Protocol Land repos.

Clone repos

git clone proland://YOUR_PROTOCOL_LAND_REPO_ID repo-name

For example, if you want to clone an example repo from protocol land, you can run:

git clone proland://ca6a9b1a-3e77-4158-9707-e079cbf1fdeb playground

Package Sidebar

Install

npm i @7i7o/git-remote-proland

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

49.4 kB

Total Files

15

Last publish

Collaborators

  • 7i7o