Git Bash terminal and Git source control taking long time

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When I open a folder in Cursor, it can take 4 minutes for it to find Git Source Control and to initialise Git Bash in the terminal. The terminal also seems slow and clunky. The cursor often jumps several lines.

This issue does not happen in VS Code. The source and terminal initialise immediately.

The problem can happen on small and large code bases.

Steps to Reproduce

Open Cursor, Open folder

Expected Behavior

Takes 4minutes to intialiase

Operating System

Windows 10/11

Version Information

Version: 3.0.9 (user setup)
VSCode Version: 1.105.1
Commit: 93e276db8a03af947eafb2d10241e2de17806c20
Date: 2026-04-03T02:06:46.446Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

1 Like

Hey, thanks for the detailed report. 4 minutes to initialize is definitely not normal.

To debug this, we need to check a few things:

  1. Bash profile, this is the most common cause, especially with Git Bash. Check how heavy your .bashrc or .bash_profile is. Tools like nvm, conda, pyenv can add tens of seconds to startup. Try temporarily renaming those files and restarting Cursor. If the problem goes away, it’s the profile.

  2. Try a different shell. Switch the default terminal profile to PowerShell or CMD via Terminal dropdown > Select Default Profile. If those initialize instantly, it confirms the delay is from loading the bash profile.

  3. Extensions. Launch Cursor from the command line with cursor --disable-extensions and see if the delay is gone.

  4. Workspace state reset. Fully close Cursor, delete or rename this file:
    C:\Users\<username>\AppData\Roaming\Cursor\User\globalStorage\state.vscdb
    then start Cursor again.

One more thing, can you share your list of installed extensions? Use Ctrl+Shift+P then run Extensions: Show Installed Extensions.

Let me know what helped or didn’t help, and we’ll dig deeper.

Hi,

I dont have .bashrc or .bash_profile. I switched to CMD and that worked perfectly. I ran cursor --disable-extensions had the same issue with Bash. I also deleted state.vscdb but again had problems. I have now decided to change terminal to Powershell 7 posh-git. This is so far proving much better, so I will have to go with this solution for now.

Since CMD works fine and neither disable-extensions nor resetting state.vscdb helped, that confirms the issue is specifically with how Cursor initializes Git Bash. Cursor adds shell integration hooks when the terminal starts, and those can conflict with Git Bash on Windows.

PowerShell 7 with posh-git is a solid choice, glad that worked.

Let me know if you start seeing issues on PowerShell 7 too.