Open any repository in a GitKraken Terminal tab to use Git CLI commands while still viewing the graph.
To get started open up a repository and click the terminal button in the toolbar, from the new tab view by clicking New Terminal Tab, or by searching for "terminal" in the command palette.
Terminal tabs can also be opened in the following ways:
- Clicking the "New Terminal Tab" button in a New tab
Ctrl/Cmd + Twhen inside a GitKraken Terminal tab (opens a duplicate tab)
- From the Command Palette (
Ctrl/Cmd + P)
Git Commands and Auto-complete
Most Git commands are supported and will apprear in GitKraken's auto-complete suggestions, start typing
git to see them.
Auto-complete suggestions will also appear for flags.
Note: Other auto-complete programs can cause GitKraken's auto-complete suggestions to not work. You may need to uninstall or disable these programs before using GitKraken Terminal.
You can access GitKraken-specific commands by typing
As well as suggestions for additional parameters.
Different views can be accessed using the
gk CLI program:
gk panel: toggles the visualization panel. Also has parameters to reposition the panel top/bottom/left/right.
gk graph: shows the graph view. Same behavior as the
gk panel, but additionally it will return to the graph if you're in a different view, and has subcommands for toggling the graph columns with the keyboard.
gk blame: opens the history/blame panel for a specific file.
gk diff: shows changes between commits. If no SHAs are provided, it will use your WIP and HEAD. If only one SHA is provided, it will be compared with HEAD.
gk --help: shows the list of
A toolbar above the panel will display the current repo name, branch, tag, and number of changes pending to pull/push. Clicking this toolbar will also toggle the panel on/off.
Navigate to Preferences Terminal to change your terminal preferences.
Note: The following shells are available depending on operating system: PowerShell for Windows, ZSH/Bash for Mac and Linux. The GitKraken Terminal utilizes your operating system's default shell. To switch shells you'll need to set the new shell as default in your operating system settings and restart your computer for auto-complete to continue working as expected