How do you copy and paste into Git Bash

前端 未结 30 1078
抹茶落季
抹茶落季 2021-01-29 16:47

I\'m using msysgit running on Windows XP.

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

相关标签:
30条回答
  • 2021-01-29 17:39

    on my keyboard insert is located on the same key as a Printscreen. unfortunately, ctrl + ins doesn't work for me , so i descoved the following working combinations for me:

    FN + CTRL + PRT SC - for copy

    FN + SHIFT + PRT SC - for insert

    0 讨论(0)
  • 2021-01-29 17:40

    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).

    0 讨论(0)
  • 2021-01-29 17:40

    In windows after this setting you can use ctrl + shift + v ( for windows)

    0 讨论(0)
  • 2021-01-29 17:40

    Windows:

    1. Right click
    2. Choose Options
    3. Choose Keys
    4. Enable Ctrl+Shift+letter shortcuts

    How does it look like?

    0 讨论(0)
  • 2021-01-29 17:41

    Yep, copy from somewhere else using ctrl+c and paste using INSERT. Work for me on Window 8.

    0 讨论(0)
  • 2021-01-29 17:44

    Right click on the Git Bash shortcut and switch to the Options tab. Enable Quick Edit Mode and click OK.

    Now you can use right click to paste into Git Bash, even passwords for remote push, which you can't do with Insert.

    enter image description here

    This also enables copy easily. Just left click and drag in the console window to select any block of text. Now right click on the selection and the text block will be copied in RAM. This is way more easier and intuitive than the other ways.

    Image source: https://danlimerick.wordpress.com/2011/07/23/git-for-windows-tip-how-to-copy-and-paste-into-bash/

    0 讨论(0)
提交回复
热议问题