Initializes a Got repo in the current working directory.
Initializes a new Got repo in the directory dst with branches under origin/
mapping to the space at the URL.
Prints information about the active branch, staging area, and untracked paths.
Creates a new snapshot by applying any changes in tracked paths to the current branch. The current branch's head is updated to the new snapshot.
- Creates a new branch called name, or errors if it exists.
- Syncs the active branch to the new branch.
- Sets the new branch as the active branch.
This command is how history splits. It is analagous to git checkout -b <name>
Prints the active branch Snapshot chain starting with the branch head.
Similar to git log
.
Lists the children of path in the filesystem contained in the current branch.
Writes the contents of the file at path, from the filesystem contained in the current branch, to stdout.
These commands control what content will be committed.
Add the files at or below path to the staging area.
Add the file or directory to the staging area.
put
on a file is that same as add
.
put
on a directory will also delete any files not in the directory.
Mark the file for deletion in the staging area.
Discard any staged operations for this path.
Untracks everything.
If name
is provided, switches to the branch with that name. If no name is provided, prints the active branch.
Lists the branches in the root branch space.
Creates a new branch.
Deletes the branch with name if it exists. Does not error if the branch does not exist.
Sets the head of the branch at name to a Snapshot parsed from standard input.
Prints the head of the branch at name to standard output.
Sync the contents of branch <src>
to branch <dst>
.
Prints the access control policy from .got/policy
.
Slurp creates a gotfs filesystem from the file at path and writes the root, PEM encoded, to stdout. Slurp can reference paths outside of the repo. It does not write to any branches. It exists primarily to give an idea of how fast Got can import a file or directory.
Overwrites the data in the working tree at path with whatever is in the active branch
Runs validation checks on the snapshots in the current history and their filesystems.