Development

🔧Git Bash Keyboard Shortcuts

20 essential shortcuts for Git Bash

Shell

ShortcutAction
Ctrl+CCancel current command / send SIGINT
Ctrl+DExit shell (EOF) / close terminal
Ctrl+ZSuspend current process
Ctrl+LClear screen

History

ShortcutAction
Ctrl+RReverse search command history
Ctrl+P/Previous command in history
Ctrl+N/Next command in history

Line Editing

ShortcutAction
Ctrl+AMove cursor to beginning of line
Ctrl+EMove cursor to end of line
Ctrl+WDelete word backward
Ctrl+UDelete from cursor to beginning of line
Ctrl+KDelete from cursor to end of line
Alt+B/Alt+FMove back / forward one word
Ctrl+YPaste (yank) previously cut text

Completion

ShortcutAction
TabAutocomplete file/directory names
Tab TabShow all completions

Terminal

ShortcutAction
Alt+EnterToggle full screen (mintty)
Ctrl+Shift+V/Shift+InsertPaste from clipboard
Ctrl+Plus/Ctrl+MinusZoom in / out
Ctrl+0Reset zoom

About Git Bash Shortcuts

Git Bash is a terminal emulator for Windows that provides a Unix-like command-line experience with Git commands, Bash shell, and common Unix utilities. Bundled with Git for Windows, it allows Windows users to use Git with the same commands as macOS and Linux users. Git Bash shortcuts combine Bash readline editing shortcuts with mintty terminal emulator controls.

This reference covers 20 essential Git Bash keyboard shortcuts organized across 5 categories: Shell, History, Line Editing, and more. Each shortcut lists both macOS and Windows/Linux key combinations where applicable, making it easy to find the right key combo regardless of your operating system.

Learning keyboard shortcuts is one of the highest-leverage investments you can make in your daily workflow. Studies show that developers and designers who rely on keyboard shortcuts are measurably faster at common tasks. Rather than memorizing every shortcut at once, focus on the ones you use most frequently and gradually expand your repertoire.

Bookmark this page for quick reference whenever you need to look up a Git Bash shortcut. The categorized layout makes it easy to find shortcuts by their function, whether you need navigation, editing, or specialized commands.

Related apps