Git tips for pull requests, detached head, opening the command line from GitKraken, and more
If you’re not already using the legendary Git GUI for Windows, Mac, and Linux, start here:
This document is a guide for tinkerers and advanced users who wish to install the Linux version of GitKraken within the WSL 2 virtual machine to get better performance interacting with files in. Unleash GitKraken, the free Git GUI for Windows, Mac & Linux! This intuitive Git GUI simplifies and streamlines Git processes. The intuitive, fast, and beautiful cross-platform Git client. NOTE: GitKraken web site does not allow to download a specific version, so this package always downloads the latest one. Once installed GitKraken has its own auto-update. Unpredictable downloads is a reason why checksum verification is disabled.
To help you get the most out of using the GitKraken Git client, we’re bringing back our popular #GitKrakenTip series. These quick tips and tricks will empower you to wield the mighty Kraken and code like you never have before.
1.Enter detached HEAD state
Detached HEAD state allows you to check out any commit and view the history of a repository without having to create a local branch.
Simply right-click on your desired commit and select the Checkout this commit option. The checked-out commit will now be tagged as HEAD, noting you have entered detached HEAD state.
From here, you can view the entire history of the commit, and you can make experimental changes without impacting other branches.
2. Open your repo in your preferred external text editor
Gitkraken Aur
Open your Git repositories inside of your preferred text editor directly from GitKraken.
Launch the Fuzzy Finder using keyboard shortcut Ctrl
+ P
, or use the Help menu. Next, type “Open” and select the option to open in your preferred editor.
Set your preferred text editor by going to Preferences → General and choosing between one of these supported external editors: VS Code, Atom, Sublime Text, or IntelliJ IDEA.
3. Copy pull request links with one click
Copy links to pull requests with one click. Simply right-click on a PR from the left panel in GitKraken to access the option to copy the link.
This can be especially convenient when collaborating with others on a project; share the link in Slack or your integrated issue tracker.
4. Quickly switch between repos with tabs
Use tabs in GitKraken to quickly switch between different Git repositories. And use the newly implemented context menu by right-clicking any tab to access the following options:
- Close tab
- Close other tabs
- Close tabs to the right
- Reopen closed tab
5. Multi-select branches for quick graph cleanup
Depending on how active your repo is, your central commit graph can get noisy 🙉 and overwhelming.
By holding down Cmd
/Ctrl
you can select multiple local branches from the left panel in GitKraken, or use Shift
+ Click
to select a consecutive range of branches. Then just right-click to delete. The easiest cleanup you’ll do today.
6. Open the command line from GitKraken
We get it. As amazing as GitKraken is, sometimes, you just want to use the terminal. You don’t need to resist the urge. The CLI is just a few clicks away.
To open a repo folder in the terminal, use keyboard shortcut: opt
+ T
(Mac) or alt
+ T
(Windows/Linux). You can also go to File → Open Terminal.
7. Set custom branch names
Looking to move away from the term “master”? You can now easily replace it with “main” or another word of your choice.
When initializing new repositories in GitKraken, you can set a custom default branch name.
8. View your repo’s Git actions through Activity Logs
Need to dig a bit deeper into your project? Activity Logs provide real-time feedback of all application and Git actions made to your repository in GitKraken.
To access a repo’s activity log, click the left icon on the bottom toolbar.
9. Never forget a keyboard shortcut
Instantly view the complete list of available GitKraken keyboard shortcuts with Cmd
/Ctrl
+ ?
.
10. View the diff of multiple commits
See all files changed in multiple commits at the same time by viewing the combined diff of those commits. Hold down Shift
or Cmd
/Ctrl
to select multiple commits from the graph.
Gitkraken Vs Sourcetree
The list of all files that have been added, modified, renamed, or deleted between the selected commits will appear in the Commit Panel on the right.
Unleash the (Git)Kraken
When you’re using the full power of the mighty GitKraken Git GUI, your workflow will reach new levels of awesome. Take these tips along on your next journey into the land of Git and UNLEASH THE KRAKEN!
Our GitKraken Cheat Sheet is a great resource to keep on hand, especially if you’re new to using the Git Client.
Stay on the cutting edge of software development by getting innovative tips, trends and stories delivered to your inbox every month!
Open GitKraken Boards as a tab in VS Code. GitKraken Boards is an issue board for tracking issues and tasks.
Different ways to open:
- Click on the
GitKraken Boards
button that this extension adds to your status bar. - Search for
GitKraken Boards
in the command palette.
Creating Boards
From the starter screen, GitKraken Boards gives you the option to create an empty board, create a new board with templated columns, or open an existing board.
Gitkraken Linux
Getting Started with GitKraken Boards
Drag-and-drop columns to arrange them. Click on a card to open and edit the description, assignees, labels, and comments. Edit board settings, like labels and users, in the settings menu.
Gitkraken Pricing
Two-Way GitHub Sync
GitKraken Boards syncs in real-time with GitHub Issues and GitHub Milestones so changes made in either system are immediately reflected in the other.
Link cards to GitHub pull requests, check PR statuses, auto-update cards based on PR statuses and view build statuses without leaving GitKraken Boards.
Automate Your Workflow
Gitkraken
Use GitHub Actions or built-in column automation to eliminate repetitive processes, like moving cards through workflow columns, assigning users, updating labels, adding relative due dates, and more.
See full documentation information on the GitKraken Boards Support Site.