How do you copy and paste into Git Bash

前端 未结 30 1109
抹茶落季
抹茶落季 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:45

    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.

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

    To copy select the text and click CTRL+INS

    To paste place the cursor where you want to print

    and click SHIFT+INS

    For more options, on the top left click on git-bash icon

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

    I was actually wondering how to do this today...and coincidentally, Phil Haack posted a tip about using posh-git (Git on powershell), which gives you tab auto-complete and a few more cool bits. I'm not going back to Git bash.

    check it out

    http://haacked.com/archive/2011/12/13/better-git-with-powershell.aspx

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

    I take it you're not on a Mac. Use insert key.

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

    It's not really a function of git, msys, or bash; every windows console program is stuck using the same cumbersome copy/paste mechanism for historical reasons. Turning on QuickEdit mode can help -- or you can install a nice alternative console like this one, and change your git bash shortcut to use it instead.

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

    Copy:

    Long-term solution: Click on Topleft icon > Defaults > Select "QuickEdit Mode" under "Edit Options" > Okay

    Then select the text you want to copy. Press Enter

    Short-term solution: Click on Topleft icon > Edit > Mark. Press Enter.

    Paste:

    Press Insert

    (If the "QuickEdit Mode" is on, Right clicking might work too.)

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