git-corporation-template

(★ 10)

Your corporation in a repo, optimized for AI. Manage all legal record keeping requirements and day-to-day activities entirely in git.

File Explorer

  • .gitattributes
  • .template-repo
  • _TODO-template.md
  • AGENTS.md
  • cli.mjs
  • CORPORATION.md
  • FORK-SETUP.md
  • MAINTAINERS.md
  • package.json
  • README.md
  • secretary-context.json
  • secretary-context.schema.json
  • SECRETARY.md
  • VERSION
  • WORKFLOWS.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

gh repo create

View Details ▼

Create a new GitHub repository.
Note: `--public`, `--private`, or `--internal` is required when not running interactively.

gh repo {{[new|create]}}

Create a new repository interactively:

gh repo {{[new|create]}} {{[-s|--source]}} . --private

Create a private repository from the current directory:

gh repo {{[new|create]}} {{[-s|--source]}} . --public

Create a public repository from the current directory:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

🔍

git diff

View Details ▼

Show changes to tracked files.

git diff

Show unstaged changes:

git diff HEAD

Show all uncommitted changes (including staged ones):

git diff --staged

Show only staged (added, but not yet committed) changes:

🔍

git fetch

View Details ▼

Download objects and refs from a remote repository.

git fetch

Fetch the latest changes from the default remote upstream repository (if set):

git fetch {{remote_name}}

Fetch new branches from a specific remote upstream repository:

git fetch --all

Fetch the latest changes from all remote upstream repositories:

🔍

node

View Details ▼

Server-side JavaScript platform (Node.js).

node {{path/to/file}}

Run a JavaScript file:

node

Start a REPL (interactive shell):

node --watch {{path/to/file}}

Execute the specified file restarting the process when an imported file is changed (requires Node.js version 18.11+):

🔍

npm run

View Details ▼

Run a script.

npm run

List available scripts:

npm run {{script_name}}

Run a script:

npm run {{script_name}} -- {{argument}} {{--option}}

Pass arguments to a script:

// repository documentation