Skip to main content

How it works

FOKS Git repositories are stored in the encrypted key-value store. The git-remote-foks binary (a symlink to foks) acts as a Git remote helper, so standard Git commands (push, pull, clone, fetch) work unchanged against foks:// URLs. Encryption and decryption happen entirely on the client. The server stores only ciphertext.

Setup

After installing FOKS, create the remote helper symlink (needed once):
Configure your shell so Git can find the helper:
Or add the foks binary’s directory to your PATH permanently.

Commands

create

Create a new encrypted repository. Prints the foks:// URL on success.
Flags:

ls

List your encrypted repositories.
Flags:

get-default-branch

Print the default branch for a repository.

set-default-branch

Set the default branch for a repository. The branch must exist unless --force is specified. Flags:

shell-config

Print shell environment variables needed for git-remote-foks to work. Intended to be evaluated in your shell:

Using with standard Git

Once the symlink is in place and your shell is configured, use foks:// URLs as you would any remote:
The URL format is:
where <owner> is your username or a team name.