A Git remote helper for the Internet Computer Protocol.
- Cloning a repo from codebase.org, hosted on the Internet Computer, using the IC’s native auth:
- Install to a location that is in your
PATH
. - Use
git
as you normally would, but useicp://
instead ofhttps://
in URLs.
openssl ecparam -name secp256k1 -genkey -noout -out identity.pem
openssl ec -in identity.pem -pubout -out identity.pub
See the example .gitconfig
This repository contains the following other crates:
-
git-remote-helper
A library for implementing Git remote helpers.
Provides core functionality for remote helpers in a protocol-agnostic way for both blocking and async implementations.
-
git-remote-tcp
A Git remote helper for the
git://
protocol.Primarily used to test that the async implementation in
git-remote-helper
behaves the same asgit
. -
git-remote-http-reqwest
A Git remote helper for
http://
andhttps://
protocols.Primarily used to test that the blocking implementation in
git-remote-helper
behaves the same asgit
(git-remote-http
andgit-remote-https
).
- Set
HOME=.
when run from the root of this repository to use the provided.gitconfig
. - The
icp://
scheme requires HTTPS. Useicp::http://
for local development.
cargo build --package git-remote-icp && PATH=./target/debug:$PATH RUST_LOG=trace HOME=. git clone icp::http://rwlgt-iiaaa-aaaaa-aaaaa-cai.raw.ic0.localhost:8453/@paul/hello-world.git
or
cargo build --package git-remote-icp && PATH=./target/debug:$PATH RUST_LOG=trace HOME=. git clone icp::http://git.codebase.ic0.localhost:8453/@paul/hello-world.git
cargo build --package git-remote-icp && PATH=./target/debug:$PATH RUST_LOG=trace HOME=. git clone icp://w7uni-tiaaa-aaaam-qaydq-cai.raw.ic0.app/@paul/hello-world.git
cargo build --package git-remote-icp && PATH=./target/debug:$PATH RUST_LOG=trace HOME=. GIT_DIR=~/temp/hello-world git-remote-icp origin http://rwlgt-iiaaa-aaaaa-aaaaa-cai.raw.ic0.localhost:8453/@paul/hello-world.git
or, without rebuilding:
RUST_LOG=trace HOME=. GIT_DIR=~/temp/hello-world cargo run origin http://rwlgt-iiaaa-aaaaa-aaaaa-cai.raw.ic0.localhost:8453/@paul/hello-world.git