If you are a developer, you know Git. Most likely, I use Git regularly. And probably you also know Linux. In fact, it will probably be developed with Linux (since Linux is one of the most popular development platforms in the world). If you are a Git user on Linux, you may be using the command line to interact with the service. In this article, I’ll show you how to install GitKraken.
However, if you could have an excellent GUI tool for that purpose, you would probably use it to make your work a little more efficient. One of those tools is the GitKraken cross-platform. With Gitkraken you can easily interact with your Git account, without having to use the command line.
If you work on the Ubuntu platform or on any platform that makes use of snapshots, there is an incredibly easy way to install Gitkraken. I’m going to guide you through the process of installing this legendary tool, using snap, and then I’ll show you how to connect Gitkraken to your GitHub account. I will be demonstrating in a daily compilation of Bionic Beaver (Ubuntu 18.04) and I will assume that you already have a GitHub account.
Important note: although there is a free Gitkraken app, you may want to take advantage of the features offered in the Pro version. After installation, you will be given a 7-day trial version of Gitkraken Pro. Once the test is finished, The price to continue using the software is:
- Individual – $ 49 per year
- 10+ users: $ 39 per user per year
- More than 100 users: $ 29 per user per year
- As GitKraken is one of the best GitHub clients available for Linux, the price of the ticket is worth the cost.
The free client of Gitkraken loses functions such as:
- Multiple profiles
- Powerful editor of merge conflicts
- Integration of GitHub Enterprise
- Integration of the GitLab community
We are going to install.
As we are using a recent version of Ubuntu, you will be ready to work with snap packages. If you open a terminal window, issue the add-on version of the command and you are not presented with the installed snap-in version, you will need to install snapd. Do this with the command:
sudo apt install snapd
Once that is over, you are ready to install Gitkraken. Back in the terminal window, execute the command:
sudo snap install gitkraken
The process will start and it will take a little more time than your usual installation. When the installation finishes, you will be ready to connect Gitkraken to your GitHub account.
Connecting Gitkraken to GitHub
As expected, this is quite simple. From the menu on your desktop, open the Gitkraken GUI client. Once it is opened, you will be presented with a login window (Figure A).
Since we are connecting Gitkraken to GitHub, click on the Login with GitHub button. This will open your default browser, where you will be asked to log in to your GitHub account. Once you have successfully logged in, you will be asked to authorize Axosoft access to your GitHub account. Click Authorize Axosoft. Once you have clicked on the authorize button, you will return to the GitKraken client, where you must accept the EULA. Click on the checkbox and then click on I accept. With the login and EULA serviced, it’s time to start using GitKraken.
I’m not going too deep into the use of Gitkraken. However, you will want to open, clone or initialize a repository. In case you have not configured a Git repository, we will initialize one with Gitkraken.
From the main window, click on the folder icon in the upper left corner. When the new window opens (Figure B), click on the Init tab.
In the resulting window (Figure C), click the Browse button and find the folder to be used or create a new folder. Next, select the free .gitignore template (a file that specifies the files intentionally without tracking that Git should ignore) and a license (optional). Once you have dealt with these settings, click on the Create repository button and your new repository will be initialized.
If you initialize a repository on your local machine, instead of cloning a GitHub repository, you will see that you can not send that repository to GitHub. Why? You must first add a remote control to the repository. To do this, you will first have to log in to your Github account, navigate to the repository to which you want to send the local repository, click on the Clone or download drop-down menu (Figure D) and copy the URL of the repository.
Back in GitKraken, open the repository you have initialized and place the mouse on the REMOTE tab. When the + button appears, click on it. In the resulting window (Figure E), select URL, name the remote control and copy the URL of the GitHub repository to the extraction URL. The Push URL will be completed automatically. Click on the Add Remote button and it will be ready to work. Your local repository will now be synchronized with the repository configured in your GitHub account.
And that is all there is to be done. Now you have Gitkraken installed, connected to your GitHub account, and a local repository capable of pushing and pulling a remote control.
And then, what are you waiting for? Git Kraken!