{"id":35824996,"url":"https://github.com/elithrar/zsh-git-to-jj","last_synced_at":"2026-07-08T02:02:16.390Z","repository":{"id":362719465,"uuid":"1126355490","full_name":"elithrar/zsh-git-to-jj","owner":"elithrar","description":"A zsh plugin for learning the Jujutsu (jj) VCS porcelain from your usual git workflow.","archived":false,"fork":false,"pushed_at":"2026-01-01T20:41:34.000Z","size":13,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-24T02:30:01.531Z","etag":null,"topics":["git","jj","jujutsu","shell","zle-widgets","zsh"],"latest_commit_sha":null,"homepage":"https://gist.github.com/elithrar/4a09ef750af5624b729a6f1d87a0431c","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elithrar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-01T18:23:01.000Z","updated_at":"2026-04-13T17:49:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/elithrar/zsh-git-to-jj","commit_stats":null,"previous_names":["elithrar/zsh-git-to-jj"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elithrar/zsh-git-to-jj","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elithrar%2Fzsh-git-to-jj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elithrar%2Fzsh-git-to-jj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elithrar%2Fzsh-git-to-jj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elithrar%2Fzsh-git-to-jj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elithrar","download_url":"https://codeload.github.com/elithrar/zsh-git-to-jj/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elithrar%2Fzsh-git-to-jj/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35248842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","jj","jujutsu","shell","zle-widgets","zsh"],"created_at":"2026-01-07T20:00:21.626Z","updated_at":"2026-07-08T02:02:16.384Z","avatar_url":"https://github.com/elithrar.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# zsh-git-to-jj\n\n\u003e 🗣️ this is a useful plugin to help you memorize + better understand how Jujutsu works, but it's not a replacement for [learning the mental model](https://docs.jj-vcs.dev/latest/tutorial/) or [deeper strategies](https://reasonablypolymorphic.com/blog/jj-strategy/).\n\nA `zsh` plugin for progressively learning [Jujutsu](https://github.com/jj-vcs/jj) (aka `jj`) porcelain as you use `git` commands.\n\nThe plugin has two modes:\n\n1. `fyi` mode (default): shows you the `jj` equivalent, but still runs the `git` command as-is.\n2. `rewrite` mode: rewrites your git command to the `jj` equivalent, so that you're interacting with `jj` directly + your shell history is jj.\n\n```sh\n# fyi mode\n$ git commit -m \"add feature\"\njj equivalent: jj commit -m \"add feature\"\n[main abc1234] add feature\n 1 file changed, 10 insertions(+)\n\n# rewrite mode (after pressing enter, command is rewritten)\n$ git commit -m \"add feature\"\n$ jj commit -m \"add feature\"   # \u003c- press enter again to execute\n```\n\nThe plugin uses ZLE (Zsh Line Editor) to intercept commands on-the-fly, and is thus zsh-only.\n\n## Install\n\n### oh-my-zsh\n\nClone into the custom plugins directory:\n\n```sh\ngit clone https://github.com/elithrar/zsh-git-to-jj.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/git-to-jj\n```\n\nThen add `git-to-jj` to your plugins array in `.zshrc`:\n\n```sh\nplugins=(... git-to-jj)\n```\n\n### vanilla zsh\n\nClone the repository and source the plugin in your `.zshrc`:\n\n```sh\ngit clone https://github.com/elithrar/zsh-git-to-jj.git ~/.zsh/zsh-git-to-jj\necho 'source ~/.zsh/zsh-git-to-jj/git-to-jj.plugin.zsh' \u003e\u003e ~/.zshrc\n```\n\n### Antigen\n\n```sh\nantigen bundle elithrar/zsh-git-to-jj\n```\n\n### zplug\n\n```sh\nzplug \"elithrar/zsh-git-to-jj\"\n```\n\n### zinit\n\n```sh\nzinit light elithrar/zsh-git-to-jj\n```\n\n## Configuration\n\n### Mode\n\nSet your preferred mode by adding to your `.zshrc` (before sourcing the plugin):\n\n```sh\n# Options: fyi (default), rewrite\nexport GIT_TO_JJ_MODE=fyi\n```\n\nYou can also switch modes at runtime:\n\n```sh\n$ git-to-jj-mode rewrite\ngit-to-jj mode set to: rewrite\n\n$ git-to-jj-mode\nCurrent mode: rewrite\nAvailable modes: fyi, rewrite\n```\n\n## Supported Commands\n\nThe plugin covers the most common git workflows. Here's a summary of the mappings:\n\n| Git Command | JJ Equivalent |\n|-------------|---------------|\n| `git init` | `jj git init` |\n| `git clone \u003curl\u003e` | `jj git clone \u003curl\u003e` |\n| `git status` | `jj st` |\n| `git diff` | `jj diff` |\n| `git log` | `jj log` |\n| `git show` | `jj show` |\n| `git add \u003cfiles\u003e` | *(automatic in jj - no staging area)* |\n| `git commit -m \"msg\"` | `jj commit -m \"msg\"` |\n| `git commit --amend` | `jj squash` or `jj describe` |\n| `git push` | `jj git push` |\n| `git pull` | `jj git fetch` (+ `jj rebase -d main@origin`) |\n| `git fetch` | `jj git fetch` |\n| `git branch` | `jj bookmark list` |\n| `git branch \u003cname\u003e` | `jj bookmark create \u003cname\u003e` |\n| `git branch -d \u003cname\u003e` | `jj bookmark delete \u003cname\u003e` |\n| `git checkout -b \u003cname\u003e` | `jj new -B \u003cname\u003e` |\n| `git checkout \u003cref\u003e` | `jj new \u003cref\u003e` |\n| `git switch -c \u003cname\u003e` | `jj new -B \u003cname\u003e` |\n| `git merge \u003cbranch\u003e` | `jj new @ \u003cbranch\u003e` |\n| `git rebase \u003cupstream\u003e` | `jj rebase -d \u003cupstream\u003e` |\n| `git cherry-pick \u003ccommit\u003e` | `jj duplicate \u003ccommit\u003e` |\n| `git revert \u003ccommit\u003e` | `jj backout -r \u003ccommit\u003e` |\n| `git stash` | `jj new @-` |\n| `git reset --hard` | `jj restore` or `jj abandon` |\n| `git reset --soft HEAD~` | `jj squash --from @-` |\n| `git restore \u003cpaths\u003e` | `jj restore \u003cpaths\u003e` |\n| `git blame \u003cfile\u003e` | `jj file annotate \u003cfile\u003e` |\n| `git ls-files` | `jj file list` |\n| `git rm --cached \u003cfile\u003e` | `jj file untrack \u003cfile\u003e` |\n| `git remote add \u003cn\u003e \u003curl\u003e` | `jj git remote add \u003cn\u003e \u003curl\u003e` |\n\nFor commands without a direct mapping, the plugin will display:\n```\ngit-to-jj doesn't know this one!\n```\n\n## License\n\nApache-2.0 licensed. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felithrar%2Fzsh-git-to-jj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felithrar%2Fzsh-git-to-jj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felithrar%2Fzsh-git-to-jj/lists"}