Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Replit 2 min read Announcement mediumAdept

Git in the Shell

Replit Repls now connect their Git command-line tools to a linked GitHub account, so clone, fetch and push work against GitHub repos, and commit messages and interactive rebase plans open in the Workspace editor. The integration sets GIT_EDITOR to a script that calls a new per-Repl local REST API, which opens a file and can block until the tab closes. Authentication goes through GIT_ASKPASS: it answers Git's username prompt with "token" and the password prompt with the GitHub token fetched from the local API, after a once-per-session consent dialog. The feature is not recommended with Multiplayer because collaborators could reach the token.

Assumes: Git command lineenvironment variables

Related posts

  • How to Create and Use an AI Git Agent

    Docker mediumAdept

    An LLM-driven Git agent runs Git commands inside an alpine/git container while authenticating with the user's own SSH keys, so non-Git users such as UI tech writers can fetch, check out PR branches and get a three-dot diff of changed files. A setup prompt mounts ~/.ssh read-only and ~/.gitconfig into a container, then copies them to a writable location. It fixes container-breaking settings such as UseKeychain and carriage-return rules, and persists the result to a /thread volume that the Git tool copies in before each command. Tagging the thread in the VSCode extension keeps credentials across runs, and read-only credentials could let people without a local Git install review PRs.

  • Scripting with GitHub CLI

    GitHub Engineering mediumAdept

    GitHub CLI (`gh`) can be extended and scripted by combining it with standard Unix tools. Aliases shorten common commands, PAGER settings route output through `less` or `delta`, and `fzf` plus `cut` turn `gh pr list` into an interactive PR checkout. When output is piped, `gh` emits tab-delimited, untruncated, uncolored text for scripts, and it comes pre-installed in GitHub Actions for tasks like enabling auto-merge or creating releases. `gh api` handles REST and GraphQL calls with auth, pagination, caching and built-in jq filtering, demonstrated by dynamically building a search for issues involving members of a team.

  • Code Review Can Be Better

    TigerBeetle mediumAdept

    TigerBeetle shelved git-review, an experiment that stored code review as a single commit of inline marked comments on top of the PR branch, edited by author and reviewer and reverted once all threads were resolved. Reviewing locally with inline comments worked very well, but applying requested changes caused merge conflicts with review comments at hunk boundaries, and frequent force-pushes added friction. The mismatch between strict hash-chained history for code and the looser merging review needs pushed the tool past a small-script budget. Git's possible adoption of Gerrit-style Change-Ids may enable per-commit interdiff review, and related tools such as Fossil, git-appraise, prr and flirt are listed.

  • How the GitHub CLI can now enable triangular workflows

    GitHub Engineering mediumAdept

    GitHub CLI v2.71.2 makes `gh pr` commands resolve a branch's push and pull targets the same way Git does, so triangular workflows work. In a triangular workflow a branch pulls from one ref, such as upstream's default branch, and pushes to another, such as the same-named branch on a fork. The post shows how to set this up in `.git/config` with a branch's `merge` key, the per-branch `pushremote` key, or the repo-wide `remote.pushDefault`, and notes that `pushremote` overrides `remote.pushDefault`. To find a pull request's headRef, the CLI checks `@{push}` first, then `pushremote`, then `remote.pushDefault`, and it treats the branch's pullRef as the PR's baseRef, so if `git push` and `git pull` are configured correctly, `gh pr` should just work.

  • WebKit on GitHub!

    WebKit easyNovice

    WebKit froze its Subversion tree on June 23rd and moved source control to git hosted on GitHub, citing git's distributed collaboration model, its author/committer model, cheap branch and revert operations, and the fact that most contributors already worked from git-svn mirrors. GitHub was chosen for its developer community and an API that made pre- and post-commit automation easy to build. Because git hashes are unordered, which complicates bisection under WebKit's zero-tolerance performance regression policy, the project uses "commit identifiers": the ancestor count on main (git rev-list --count) plus a branch-relative count for branches. These identifiers are supported by the git-webkit script and the commits.webkit.org translation service.

The quest for software engineering knowledge.

Look:
Layout: