Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to copy text in git bash (on Windows) using just the keyboard?

I want to copy text, either -

  • the output of the previous command, OR
  • any text present in the bash window,

simply by navigating the cursor and selecting the text using only the keyboard. I do not want to use the mouse at all.

  1. Is there any way to do this?
  2. If impossible, is there any way to do this with minimal use of the mouse?

Example use case - copying the name of a branch, or a commit ID (from a previous git log or git branch) and then pasting it in a git command for switching to it.

like image 838
indojin Avatar asked Oct 28 '25 13:10

indojin


1 Answers

You can check the shortcut by

with keys: > options > keys > shortcuts

or

with mouse > options > mouse > mouse functions

like image 104
LF00 Avatar answered Oct 30 '25 05:10

LF00