I'm using msysgit running on Windows XP.
Tried Ctrl+V, Right click, Middle click, google... no luck.
I'm using msysgit running on Windows XP.
Tried Ctrl+V, Right click, Middle click, google... no luck.
Press Insert.
Also, to copy from the window, try clicking the console's window icon (topleft) and choosing Edit -> Mark, then drag a box on the text, then press Enter. (You can also paste via the window icon menu, but the key is faster.)
UPDATE
Starting from Windows 10 the CTRL + C, CTRL + V and a lot of other feature are implemented in conhost.exe so they should work with every console utility on Windows. (You have to enable Properties -> Option tab -> Quick Edit Mode)
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.
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.)
This is suggested by the github help page:
clip < filename
this copies the contents of filename to the clipboard and is useful for doing things like copying your id_rsa.pub to a web form.
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.
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/
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"
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