How can I copy the contents of a file directly into my Windows clipboard when I'm running the command on a remote Linux machine via ssh in Git Bash?
问题 I'm using Windows 10. I open Git Bash and then ssh into an Ubuntu server. Often I want to copy the whole contents of a large text file. Rather than using scp to download the file to my Windows machine, I sometimes would rather quickly copy the contents to my clipboard. Using cat and then scrolling thousands of lines and then manually copying to clipboard is possible but isn't practical. I'd rather pipe cat to a command that copies the output to my Windows clipboard. Or call some other command