Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Coming from git

You can move to Grovedock one person at a time. git users and gd users work on the same branches of the same server.

Keep using git

On Grovedock Cloud (and any server run with --git-dir), stock git works with nothing to install. Use a token as the password (Tokens, in the app’s account menu):

git clone https://cloud.grovedock.com/acme/fleet.git
git push          # lands as you, as it is: protections, review rules and secret scanning apply
git pull --rebase

A push that Grovedock refuses fails with the reason (remote: Grovedock refused refs/heads/main: this change adds a secret: …). A push lands only when it fast-forwards, as in git; pushing deletes nothing (delete branches in the app or with gd). Public repositories clone without a token. IDEs, CI systems and package managers that fetch with git (Go modules, npm and Cargo git dependencies) use the same address.

The gd:: remote helper

With git-remote-gd on your PATH (every install method puts it next to gd), git can also talk to a Grovedock server over its own protocol, on servers that don’t serve git’s:

git clone gd::https://cloud.grovedock.com/acme/fleet repo
git push          # lands on the server; if main moved, the server rebases instead of rejecting
git pull --rebase

Fetches are incremental. Set GD_PUSH=strict to get git’s reject-if-behind behaviour instead of a server-side rebase.

Command map

gitgdNotes
git clone URLgd clone URL DIRadd --path services/api to check out part of the repository
git statusgd statusalias st
git add + git commit -mgd commit -m MSG [PATHS]no staging area; pass paths to commit a subset
git pushgd landalias push; the server rebases if main moved; several commits land in order (--squash lands them as one)
git pullgd syncalias pull
git switch -c x / git switch xgd checkout -b x / gd checkout x
git log -- pathgd log pathanswered by the server, no local history
git diff / git diff A Bgd diff / gd diff A B
git show REVgd show REV
git blame fgd blame f
git show REV:pathgd cat REV pathworks without a clone
git ls-tree REV dirgd ls REV [dir]works without a clone
git branchgd refsalias branch
git tag v1.2.0 / git taggd tag v1.2.0 / gd tag--at REV to tag something else; tags never move, and git push --tags makes them too
(none)gd cr undo-agent NAME --since 2hundo what an agent landed since a time, as one change request; people’s later edits stay where they don’t overlap
git merge conflictsgd cr conflicts N / gd cr resolve N --from DIRfiles both changed are merged line by line on the server; only real clashes need you, and no clone is needed
(GitHub: Releases)gd release create v1.2.0 --file app.tar.gznotes written from what landed since the last release; gd release notes previews them and suggests the version
git merge-base A Bgd merge-base A B
(none)gd find PATTERNpath search on the server
git grep WORDSgd search WORDS [path:dir/ lang:ts]from the server’s index: no clone, fast on any size of repository; gd symbol NAME finds definitions
git lfs lock f / git lfs unlock fgd lock f / gd unlock fexclusive locks for files that cannot be merged
git lfs locksgd locks [dir]
(none)gd mount DIR --rev maina read-only view, files fetched on first read (Linux, macOS, Windows)

Moving history in and out

gd import-git ~/code/my-repo --server https://cloud.grovedock.com/acme/fleet   # incremental; rerun any time
gd export-git ./mirror.git                                     # the whole history, same commit ids for what came from git

Keep GitHub, GitLab or Bitbucket up to date

gd mirror pushes every landed change to an existing git host, so CI, code search and issue links keep working there. See Mirror to a git host.

Submodules are not imported. Commits are imported with their authors, messages and dates, so gd log and gd blame show the original history.

What works differently

  • No staging area. gd commit takes paths instead of git add.
  • No local history. log, blame and diff between revisions ask the server. You need the server to be reachable; this is the main trade-off against git.
  • Landing replaces push. If main moved, the server rebases your change when it touches different files. You only resolve conflicts that are real.