{% 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" %}

Getting started with Porjay

From installing the CLI to sharing code, managing branches, and collaborating with teams.

1. Install

{{ cmd(["curl -fsSL " ~ host ~ "/install.sh | sh"], label="Install command") }}

See Install Porjay for manual downloads and building from source.

2. Create an account and a repository

Sign up with a username, email, and password, then open the confirmation link. Next, use New repository. Your project lives at {{ host }}/{{ me }}/project.

3. Clone and commit

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).

4. Daily work

5. Branches and merging

{{ cmd([cli ~ " commit --branch idea -m \"Try a new layout\"", cli ~ " update trunk", cli ~ " merge idea", cli ~ " commit -m \"Merge idea\""], label="Branch commands") }}

The main branch is called trunk. {{ cli }} branch list shows all branches.

6. The web interface

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") }}

7. Sharing and collaborators

8. Coming from git

{% for g, p, what in git_map %} {% endfor %}
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") }}

9. Getting help

Run {{ cli }} help for all commands, or {{ cli }} help commit for one. Porjay is built on Fossil, so Fossil’s documentation applies too.

{% endblock %}