A basic git-remote-helper for Protocol Land remotes
git
node
npm
,yarn
orpnpm
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
.
npm install --global @7i7o/git-remote-proland
yarn global add @7i7o/git-remote-proland
pnpm add --global @7i7o/git-remote-proland
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 thegit config
command.
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.
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