---
title: "Git in the Shell"
description: "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."
url: "https://swe.quest/articles/git-in-the-shell-3c49c833a85a526e"
canonical: "https://replit.com/blog/git-in-the-shell"
source: "Replit"
published: "2023-01-30"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 2
tags: ["version-control","developer-tools","identity-auth"]
---

# Git in the Shell

A post on [Replit](https://swe.quest/sources/replit.md), published 2023-01-30, 2 min read, Announcement. Original: [https://replit.com/blog/git-in-the-shell](https://replit.com/blog/git-in-the-shell)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- Git command line
- environment variables

## Keywords

Replit, Git, GitHub, GIT\_ASKPASS, GIT\_EDITOR

## Related posts

- [How to Create and Use an AI Git Agent](https://swe.quest/articles/how-to-create-and-use-an-ai-git-agent-f412a4e8174fad8b.md): Docker · 2024-12-16 · Medium · 6 min read · AI agents, Version control, Containers, Developer tools
  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.
- [Scripting with GitHub CLI](https://swe.quest/articles/scripting-with-github-cli-91a3a551f29d6152.md): GitHub Engineering · 2021-03-11 · Medium · 6 min read · Developer tools, CI/CD, API design
  GitHub CLI (\`gh\`) can be extended and scripted by combining it with standard Unix tools.
- [Code Review Can Be Better](https://swe.quest/articles/code-review-can-be-better-2739fb600c90a5b6.md): TigerBeetle · 2025-08-04 · Medium · 4 min read · Code review, Version control, Developer tools
  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.
- [How the GitHub CLI can now enable triangular workflows](https://swe.quest/articles/how-the-github-cli-can-now-enable-triangular-workflows-9d168cb0f33f735d.md): GitHub Engineering · 2025-04-25 · Medium · 10 min read · Version control, Developer tools
  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.
- [WebKit on GitHub!](https://swe.quest/articles/webkit-on-github-d3587a8b64d71587.md): WebKit · 2022-08-31 · Easy · 2 min read · Version control, Open source, Browsers
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
