# Git for Raycast

URL: https://www.raycast.com/ernest0n/git

> Manage local Git repositories on your Mac: commit, diff, branch, merge, rebase, stash, push and pull, with worktrees, submodules and AI commit messages.

- Install: raycast://extensions/ernest0n/git
- Author: [Ernest0n](https://www.raycast.com/ernest0n)
- Installs: 1,531
- Platforms: macOS
- Categories: Developer Tools, Productivity
- Updated: 2026-12-03
- Source: https://github.com/raycast/extensions/tree/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git/

## Commands

- **Manage Git Repositories**: List of Git repositories
- **Clone Git Repository**: Clone a Git repository from URL
- **Open Git Repository**: Open a Git repository management interface
- **Open Last Visited Git Repository**: Open the most recently visited Git repository
- **Configure Issue Trackers**: Manage URL tracker rules for linking commit messages
- **Manage AI Message Prompts**: Configure AI commit message prompt presets

## README


<p align="center">
<img width=180 src="https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//assets/extension-icon.png"/>
</p>

### Git Client for Raycast <!-- omit from toc -->

Manage your Git repositories from anywhere on your Mac.

#### Overview <!-- omit from toc -->

- [Supported Git Features](#supported-git-features)
- [Core Features](#core-features)
- [Extra Features](#extra-features)
- [Tips \& Tricks](#tips--tricks)
- [⁉️ FAQ](#️-faq)
- [🧑‍🚀 Future Features](#-future-features)
- [💸 Support for the development](#-support-for-the-development)

#### Supported Git Features

| Feature                                              | Supported | Notes                                           |
| ---------------------------------------------------- | :-------: | ----------------------------------------------- |
| `git status` <br> `git add` <br> `git restore`       |     ✅     |                                                 |
| `git commit`                                         |     ✅     | + amend <br>+ generate AI message               |
| `git log` <br> `git show` <br> `git diff`            |     ✅     | + stats                                         |
| `git ls-files`                                       |     ✅     | + file history                                  |
| `git grep`                                           |     🚫     |                                                 |
| `git branch` <br> `git tag` <br> `git checkout`      |     ✅     |                                                 |
| `git merge` <br> `git rebase` <br> `git cherry-pick` |     ✅     | + interactive rebase <br>+ conflicts resolution |
| `git revert` <br> `git reset`                        |     ✅     | + soft/hard/mixed                               |
| `git stash` <br> patch                               |     ✅     |                                                 |
| `git fetch` <br> `git pull` <br> `git push`          |     ✅     | + force                                         |
| `git remote`                                         |     ✅     |                                                 |
| `git config`                                         |     ✅     |                                                 |
| `git worktree`                                       |     ✅     |                                                 |
| `git submodule`                                      |     ✅     |                                                 |
| `git-lfs`                                            |     ✅     |                                                 |
| `.gitignore`                                         |     ✅     |                                                 |

#### Core Features

##### 🚦 Control **working tree** status

- List staged and unstaged files with their status (added, modified, deleted, conflicted, etc.)
- View diff of files

![Status View](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//metadata/git-2.png)

##### 🧰 Resolve merge/rebase **conflicts**

- Pick per-segment resolution for merge conflicts

![Merge Conflict](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/merge-conflcit-resolve.png)

##### 🔎 Search in **commits** and **file history**

- Search commit by commit hash, author, message body, creation date, etc.
- View commit history of a specific file

<p float="left">
  <img src="https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//metadata/git-5.png" width="49%" />
  <img src="https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/file-history.png" width="49%" />
</p>

##### ↪️ Checkout, cherry-pick, rebase, reset, revert, and merge on commit, branch, tag

- Absolutely all the actions you need to change history

<p float="left">
  <img src="https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/branch-actions.png" width="49%" />
  <img src="https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/commit-actions.png" width="49%" />
</p>

##### 🌳 Manage **branches**, **tags**, and multiple **remotes**

- Create, delete, and rename branches and tags
- Set up multiple remotes

![Branches](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//metadata/git-6.png)

##### 📦 Save and apply **stashes** and **patches**

![Apply Stash](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/stash-apply.png)

##### 📥 Clone repositories from a URL **in the background**

- Quickly clone multiple repositories from a URL over HTTPS or SSH in the background
- Track cloning progress

![Clone Repository](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/clone-repository.png)

#### Extra Features

##### 🔗 Issue Link Detection

Detect links based on markers in commit messages and the most common web page shortcuts of the remote host, such as:
- file blame & history
- pull requests
- commit details and builds
- tag release page
- linked `#issue`
- and more...
  ![Issue Link](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/attached-links.png)

💡 You can also set up custom rules to parse information from commit messages based on regex patterns and create links to specific issue trackers.

1. Run command `Configure URL Trackers` to list all your URL tracker rules.
  ![Issue Link](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/issue-trackers-list.png)

2. Run `Add New Rule` to add a new URL tracker rule and fill in the fields.
  ![Issue Link](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/issue-tracker-editor.png)
  - `Regex` should include a capture group for the issue number
  - `URL Template` should contain the `@key` placeholder where the regex match should be inserted

3. Open the `Commits` tab and run the `Attached Links` action to open a submenu with issue links found in commit messages.
  ![Issue Link](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/issue-tracker-detection.png){width="50%"}

4. Profit 🎉

---

##### ✨ Generate **AI commit messages**

Generate commit messages using AI based on the diff content of the staged changes.

![Generate Commit Message](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/generate-commit-message.png)

💡 You can also set up custom AI prompts with multiple presets for different styles of commit messages.

1. Run the `Manage AI Message Prompts` command to list all existing AI prompt presets.
  ![AI Commit Message](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/custom-presets-list.png)

2. Create (`⌘ + N`) or duplicate (`⌘ + D`) an existing preset and edit it to your needs.
  ![AI Commit Message](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/custom-preset-prompt.png)

3. Run `Generate Commit Message` (or `⌘ + Shift + G`) and pick your preset from the submenu.
  ![AI Commit Message](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/custom-preset-action.png)

4. Profit 🎉

---

##### 🔄 Interactive rebase editor

![Interactive Rebase Editor](https://github.com/raycast/extensions/raw/29a77b38725115a7497cb03f02d4c01e40998eb6/extensions/git//media/interactive-rebase.png)

#### Tips & Tricks

##### 🎛️ Fast Navigation

Use `⌘ + N` to quickly navigate between tabs (aka dropdown items) of the extension.
  - `⌘ + 1` to go to Status
  - `⌘ + 2` to go to Commits
  - `⌘ + 3` to go to Branches
  - `⌘ + 4` to go to Tags
  - `⌘ + 5` to go to Remotes
  - `⌘ + 6` to go to Stashes
  - `⌘ + 0` to go to Files

---

##### ⚡ Quicklink for a specific repository

You can create a Quicklink to open a specific repository without needing to select it in the `Manage Git Repositories` list.

1. Run command `Manage Git Repositories` to list all your repositories.
2. Run `Create Quicklink` (or `⌘ + L`) on the repository list item.
3. Profit 🎉

---

#### ⁉️ FAQ

> Which environment variables are used when performing Git commands?

The extension loads:
- All environment variables from your interactive Zsh shell.
- `SSH_AUTH_SOCK` from `launchctl` to access the system SSH agent with already set up SSH keys.

#### 🧑‍🚀 Future Features

- [ ] AI Tools
- [ ] More fluent commit search
- [ ] Background fetching
- [ ] Menu Bar Commands
- [ ] Windows support
- [ ] Manage Hooks

#### 💸 Support for the development

[!["Buy Me A Coffee"](https://cdn.buymeacoffee.com/buttons/v2/arial-orange.png)](https://buymeacoffee.com/ernest0n)
