Skip to content

Git Bash (Windows) Complete Guide to Configuring macOS-Style Copy and Paste ​

Complete Guide Diagram for Configuring macOS-Style Copy and Paste in Git Bash (Windows)

For Git Bash (MinTTY terminal) on Windows. No plugins required; complete the configuration in 3 minutes and make the copy-paste experience almost as good as macOS.

1. Why change it? ​

Git Bash uses by default MinTTY As a terminal emulator, its default copy and paste is:

OperationGit Bash default keys
CopyCtrl + Insert
pasteShift + Insert

macOS user habits Command + C/Command + V, use directly Ctrl + C will trigger the terminal interrupt signal (SIGINT),Cannot be simply mapped to copying..

So, is there an elegant alternative? Yes—Mouse operation.

The solution closest to the macOS trackpad experience:

  • Mouse drag to select text Auto copy

  • Right mouse button Paste directly

No need to press any keyboard, efficiency is even higher than Ctrl+C / Ctrl+V.

III. Configuration Steps (Illustrated) ​

1. Open Options ​

In the Git Bash window:

  • Right-click the window title bar, or click the icon in the upper left corner;

  • 选择 Options....

2. Set mouse behavior ​

Enter the left side Mouse Tab, settings as follows:

OptionsRecommended value
Right mouse buttonPaste
Middle mouse buttonPaste
Default click targetApplication
Modifier for overriding defaultShift

Namely:Right-click = paste, middle-click = paste.

3. Enable "Copy on Select" ​

Enter the left side Selection tab, in Clipboard Region selection:

  • Copy on select(Core: copy on selection)

  • Copy with TABs

  • Clear selection on input

💡 Different versions of Git Bash have slightly different option layouts:

  • Newer version:Copy on select Located at Selection Tab;

  • Old version: may be in Mouse In the tab, called Copy on select or Paste on right click.

If you cannot find it, please refer to the interface of your current version; the logic is consistent.

4. Save and apply ​

Click Apply→Save, configuration Effective immediately, no need to restart Git Bash.

IV. Usage Effects ​

OperationEffect
Select text by dragging the mouseAutomatically copy to clipboard
Right-clickPaste directly
Middle mouse button clickPaste directly (optional)
keyboard Ctrl + CRetain the original terminal interrupt functionality.
keyboard Ctrl + InsertCopy (keep default)
keyboard Shift + InsertPaste (keep default)

Core Advantages: while retaining the terminal Ctrl+C Interrupt signal, while also achieving a smooth macOS-style copy-and-paste experience.

V. Frequently Asked Questions ​

Q1: Why can't it be directly changed to Ctrl+C Copy,Ctrl+V Paste? A: MinTTY does not support keyboard shortcut remapping.Ctrl+C In the terminal, it is the interrupt signal (SIGINT); forcibly changing it would break the command interrupt function, and MinTTY officially does not provide a way to modify it.

Q2: Can it be implemented by modifying the configuration file (.minttyrc)? A:不能。.minttyrc There are no shortcut key mapping options; only appearance, font, mouse behavior, etc. can be configured.

Q3: insist on Ctrl+C / Ctrl+V What should I do? A: Abandon MinTTY, switch to Windows Terminal or VS Code built-in terminal, they support true keyboard shortcut customization and can intelligently distinguish between “copy” and “interrupt”:

  • There is selected text. Press Ctrl+C Copy

  • No text selected Press Ctrl+C Interrupt signal

This is completely consistent with the behavior of Terminal / iTerm2 on macOS.

Q4: What should I do if my interface is different from the tutorial? A: The option names and locations for MinTTY differ slightly across different Git for Windows versions:

  • “Copy on select” may be Mouse or Selection Tab;

  • “Paste on right click” has been split into in the new version.Mouse → Click actions → Right mouse button = Paste.

Just find the corresponding option logically; their functions are essentially the same.

VI. Conclusion ​

RequirementsRecommended practice
Want macOS-style smooth copy and pasteSolution in this article: select to copy + right-click to paste
Keep using the keyboard Ctrl+C / Ctrl+VSwitch to Windows Terminal or the built-in terminal in VS Code
Want to preserve the terminal interrupt signalMaintain Ctrl+C Leave it as is

📌One sentence: Git Bash's MinTTY does not support key remapping, but enabling Select to copy + right-click to paste After that, the mouse experience completely beats the native macOS terminal, and it’s worth a try.

Configuration path mnemonic: Git Bash 标题栏右键 → Options → Mouse(右键=Paste)→ Selection(Copy on select)→ Apply → Save

Last updated on11/07/2026, 02:16 PM
@fishfinal | @fishfinals | [email protected]