How do you copy and paste into Git Bash

2020-05-10 15:21发布

I'm using msysgit running on Windows XP.

Tried Ctrl+V, Right click, Middle click, google... no luck.

30条回答
老娘就宠你
2楼-- · 2020-05-10 15:59

For users working on Windows 7, Shift + INSERT works fine.

查看更多
可以哭但决不认输i
3楼-- · 2020-05-10 16:01

I'm back to Windows for the first time in a long time and this got me cursing like a docker. I finally found this:

ctrl_shift_letter_shortcuts

Enabling Ctrl+Shift+letter shortcuts got me to a Linux-like behaviour that has lowered my blood pressure. Ctrl+Shift+C/Vnow works.

查看更多
放我归山
4楼-- · 2020-05-10 16:01

In the properties of the console you can activate the "Quick Edit Mode" under "Edit Options", that way you can paste inside the console just right clicking. Or you can use 'Insert' as they say.

查看更多
Deceive 欺骗
5楼-- · 2020-05-10 16:06

Use Shift + Insert like in linux bash

Edit: It works even in putty.

查看更多
地球回转人心会变
6楼-- · 2020-05-10 16:06

You can also just right-click in the console window. Be sure (as per earlier answers) to enable both 'Edit Options' in the Properties panel (from the System menu).

查看更多
姐就是有狂的资本
7楼-- · 2020-05-10 16:07

MacBook pro doesnt have an ins key. Use FN + ENTER to paste

查看更多
登录 后发表回答