I'm using git-for-windows MING64 MinTTY running on Windows 7. When I select text on git bash, it always trigger ctrl+C(which will display ^C in the next command line.
e.g.: When I left click down to select “git --version”, then left click up, the next command line becomes “$^C”.
$ git --version
git version 2.9.2.windows.1
$^C
Has anyone ever encounted this issue? And how to fix it? I download the exe file from https://github.com/git-for-windows/git/releases.
You can now press Ctrl+Shift+C to copy selected text in the Bash shell, and Ctrl+Shift+V to paste from your clipboard into the shell.
Ctrl+Shift+C and Ctrl+Shift+V If you highlight text in the terminal window with your mouse and hit Ctrl+Shift+C you'll copy that text into a clipboard buffer. You can use Ctrl+Shift+V to paste the copied text into the same terminal window, or into another terminal window.
Enter the keyboard combination Alt+Space Bar to open the system menu of the command window. Then use the select and copy options from there.
There's step-by-step expanded instruction here.
See also Copying and Pasting in Git Bash. Excerpt as follows:
Copying and Pasting in Git Bash
The default way to copy/paste in Git Bash is by using the menu (accessed by going to the top left) to "mark" to select what you want to copy and then use the menu again to paste.
This gets inefficient pretty quickly, so it's a good idea to set up QuickEdit mode to make copying and pasting much faster. To do this, go to
Menu->Properties
and in theOptions
tab selectQuickEdit Mode
.
copy: CTRL + INSERT
paste: SHIFT + INSERT
Source here
You can use autohotkeys to convert Shift + Insert to another shotcut you want. I use this way in my autohotkeys file:
^+v::^Ins
To me is better Ctrl+Shift+V instead of Ctrl+V to avoid compatibility issues with vim, but if you don't use vim you can use the common way.
Another solution is use console emulators like conemu it allows you edit all shotcuts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With