How do you copy and paste into Git Bash

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

    If you click at the icon on the upper left corner, a drop-down menu will appear, and you can find the option to copy/paste from there.

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

    console2 ( http://sourceforge.net/projects/console/ ) is my go to terminal front end.

    it add great features like copy/paste, resizable windows, and tabs. you can also integrate as many "terminals" as you want into the app. i personally use cmd (the basic windows prompt), mingW/msysGit, and i have shortcuts for diving directly into the python and mysql interpreters.

    the "shell" argument i use for git (on a win7 machine) is:

    C:\Windows\SysWOW64\cmd.exe /c ""C:\Program Files (x86)\Git\bin\sh.exe" --login -i"

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

    The way I do this is to hold Alt then press Space, then E and finally P.

    On Windows Alt jumps to the window menu, Space opens it, E selects Edit and P executes the Paste command.

    Get these correct in succession and you can paste a snippet in under 2 seconds.

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

    Aside from using the edit menu commands, you can directly paste into the git bash window using the keyboard shortcut, Insert.

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

    COPY:Click the title bar, choose mark, then select the content you want to copy. PASTE: Copy what you want to past, focus on the bash, hit the insert key on the keyboard.

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

    Get Console2. You configure it to do it multiple different ways. Works with bash or Windows command prompts.

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