Programing

Git Bash에 복사하여 붙여 넣는 방법

lottogame 2020. 10. 2. 21:25
반응형

Git Bash에 복사하여 붙여 넣는 방법


Windows XP에서 실행되는 msysgit을 사용하고 있습니다.

시도 Ctrl+ V, 오른쪽 클릭, 가운데 클릭, Google ... 운이 없습니다.


를 누릅니다 Insert.

또한 에서 복사 하려면 콘솔의 창 아이콘 (왼쪽 위)을 클릭하고 편집-> 표시를 선택한 다음 텍스트의 상자를 드래그 한 다음 Enter 키를 눌러보십시오. (창 아이콘 메뉴를 통해서도 붙여 넣을 수 있지만 키가 더 빠릅니다.)

최신 정보

Windows 10부터 CTRL+ C, CTRL+ V및 기타 많은 기능이 conhost.exe에 구현되어 있으므로 Windows의 모든 콘솔 유틸리티에서 작동해야합니다. (속성-> 옵션 탭-> 빠른 편집 모드를 활성화해야합니다)

참조 : http://blogs.windows.com/buildingapps/2014/10/07/console-improvements-in-the-windows-10-technical-preview/


편집 메뉴 명령을 사용하는 것 외에도 키보드 단축키 인를 사용하여 git bash 창에 직접 붙여 넣을 수 있습니다 Insert.


실제로 git, msys 또는 bash의 기능이 아닙니다. 모든 Windows 콘솔 프로그램은 역사적인 이유로 동일한 복사 / 붙여 넣기 메커니즘을 사용하여 중단됩니다. 켜기 빠른 편집 모드하는 것은 도움이 될 수 있습니다 - 또는 당신은 같은 좋은 대안 콘솔을 설치할 수있는 이 일을 , 대신 그것을 사용하는 당신의 자식 bash에 바로 가기를 변경할 수 있습니다.


부:

장기적인 해결책 : 왼쪽 상단 아이콘> 기본값> "편집 옵션"에서 "빠른 편집 모드"선택> 확인

그런 다음 복사 할 텍스트를 선택합니다. 프레스Enter

단기 솔루션 : 상단 왼쪽 아이콘> 편집> 표시를 클릭합니다. 를 누릅니다 Enter.

풀:

프레스 Insert

( "빠른 편집 모드"가 켜져있는 경우 오른쪽 클릭도 작동 할 수 있습니다.)


Linux bash 에서처럼 Shift+ 사용Insert

편집 : 퍼티에서도 작동합니다.


나는이 작업을 수행하는 방법은 유지하는 것입니다 Alt누른 다음를 누릅니다 Space다음, E마지막으로 P.

윈도우에서 Alt윈도우 메뉴로 이동, Space그것을 열어 E선택 편집을 하고 P실행 붙여 넣기 명령을 사용합니다.

연속해서 올바른 정보를 얻으면 2 초 이내에 스 니펫을 붙여 넣을 수 있습니다.


이것은 github 도움말 페이지 에서 제안 합니다 .

clip < filename

이것은 파일 이름의 내용을 클립 보드에 복사하고 id_rsa.pub를 웹 양식에 복사하는 것과 같은 작업을 수행하는 데 유용합니다.


Git BASH CTRL+에 붙여 넣기P


나는 오랜만에 Windows로 돌아 왔고 이로 인해 도커처럼 저주를 받았습니다. 마침내 이것을 찾았습니다.

ctrl_shift_letter_shortcuts

"Ctrl + Shift + 문자 바로 가기"를 활성화하면 혈압을 낮추는 Linux와 유사한 동작을하게되었습니다. 이제 Ctrl + Shift + C / V가 작동합니다.


Git Bash 바로 가기를 마우스 오른쪽 버튼으로 클릭하고 옵션 탭으로 전환 하십시오. 빠른 편집 모드를 활성화 하고 확인을 클릭 합니다.

이제 마우스 오른쪽 버튼클릭 하여 Git Bash에 붙여 넣을 수 있습니다 . 심지어는 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"


Ctrl + insert did it for me in Windows.


if your intention is copy/paste comments for git commits, try set the enviromental variable EDITOR as your favorite plain-text editor (notepad, notepad++ ...) and when you will commit, don't give him the -m option and Git will open your favorite editor for copy/paste you comment


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


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


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.


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


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


여기에 이미지 설명 입력

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


In windows I'm not sure about copy but for paste works Ctrl+Insert. In Linux copy: CTRL+SHIFT+C, paste: CTRL+SHIFT+V


I use the mouse:

  1. mark
  2. right click -> copy
  3. right click -> paste

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.


For users working on Windows 7, Shift + INSERT works fine.


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


Here are a lot of answers already but non of them worked for me. Fyi I have a Lenovo laptop with win10 and what works for me is the following:


Paste = Shift+fn+prt sc


Copy = Shift+fn+c


나는 또한 같은 문제를 겪고 있는데, git bash는 전통적인 방법으로 창에 복사하여 붙여 넣는 것을 지원하지 않지만 단일 명령으로 간단히 복사하여 붙여 넣을 수 있습니다.

Shift + fn + 삽입


왼쪽 상단에있는 아이콘을 클릭하면 드롭 다운 메뉴가 나타나고 여기에서 복사 / 붙여 넣기 옵션을 찾을 수 있습니다.


복사하려면 텍스트를 선택하고 CTRL + INS를 클릭합니다.

붙여 넣으려면 인쇄 할 위치에 커서를 놓습니다.

SHIFT + INS를 클릭합니다.

더 많은 옵션을 보려면 왼쪽 상단에서 git-bash 아이콘을 클릭하십시오.


MacBook Pro에는 ins 키가 없습니다. FN+ ENTER사용 하여 붙여 넣기

참고 URL : https://stackoverflow.com/questions/2304372/how-do-you-copy-and-paste-into-git-bash

반응형