{% extends "base.html" %} {% from "_macros.html" import cmd %} {% block title %}Getting started · Porjay{% endblock %} {% block content %} {% set host = cfg.PUBLIC_BASE_URL %} {% set me = user.username if user else "you" %}
From installing the CLI to sharing code, managing branches, and collaborating with teams.
See Install Porjay for manual downloads and building from source.
Sign up with a username, email, and password, then open the confirmation link. Next, use New repository. Your project lives at {{ host }}/{{ me }}/project.
Cloning copies the entire project history and opens a working folder. Include your username in the URL so Porjay can push for you.
{{ cmd([cli ~ " clone " ~ host | replace("://", "://" ~ me ~ "@") ~ "/" ~ me ~ "/project", "cd project", cli ~ " user default " ~ me, cli ~ " add notes.md", cli ~ " commit -m \"First notes\""], label="Clone and commit") }}{{ cli }} user default records your Porjay username on check-ins. Commits sync automatically while online (autosync).
{{ cli }} status shows what changed; {{ cli }} diff shows line-by-line diffs.{{ cli }} add FILE tracks new files; {{ cli }} addremove adds new files and removes deleted ones.{{ cli }} commit -m "Message" saves all changes to tracked files (no staging step).{{ cli }} update pulls others’ work and updates your working folder.{{ cli }} timeline lists recent check-ins.{{ cli }} revert FILE discards local edits; {{ cli }} undo reverses the last update, merge, or revert.The main branch is called trunk. {{ cli }} branch list shows all branches.
Every repository includes a GitHub-style web interface with files, timeline, branches, tags, wiki, tickets, and forum. Open {{ host }}/user/project or run locally:
{{ cmd([cli ~ " ui"], label="Local web interface") }}{{ cli }} remote scrub locally and sync once to save the new password.| Git | {{ cli }} | What it does |
|---|---|---|
{{ g }} | {{ cli }} {{ p }} | {{ what }} |
To convert a git project with its history:
{{ cmd(["git fast-export --all | " ~ cli ~ " import --git project.porjay"], label="Git import") }}Run {{ cli }} help for all commands, or {{ cli }} help commit for one. Porjay is built on Fossil, so Fossil’s documentation applies too.