Skip to content
Related Articles
Open in App
Not now

Related Articles

How to install Sublime Merge in ubuntu/linux?

Improve Article
Save Article
Like Article
  • Difficulty Level : Expert
  • Last Updated : 02 Jan, 2023
Improve Article
Save Article
Like Article

This article will demonstrate how to set up Sublime Merge on Ubuntu-based computers. Sublime Merge is a git client which enables the reading of a git repository to display the list of submissions (commits), the branches, and the differential of the most recent alterations. Modifications can be submitted (pushed) and retrieved (pulled) through the interface. Smerge, a command-line utility included with Sublime Merge, allows users to manage repositories from the command line.

There are multiple ways to install Sublime merge in Ubuntu.

Using Ubuntu Software:

Step 1: Open Ubuntu Software and search for Sublime Merge.


Step 2: Install Sublime merge and wait for the installation to complete.



Step 3: Find it in your system and use it.

Sublime merge installed

Using Terminal: 

Option 1:

Step 1: Update your Ubuntu system packages.

sudo apt update -y && sudo apt upgrade -y

Step 2: The Ubuntu basic repository does not have the Sublime Merge package. Therefore, you can add it to your Ubuntu system by importing the Sublime Merge repository. And import the GPG key.

echo ‘deb [signed-by=/usr/share/keyrings/sublime.gpg] apt/stable/’ | sudo tee -a /etc/apt/sources.list.d/sublime-text.list

sudo wget -qO – | gpg –dearmor | sudo tee /usr/share/keyrings/sublime.gpg

Step 3: Install Sublime merge.

sudo apt update
sudo apt install sublime-merge

sublime merge installing

Option 2:

Snaps are programs with all their dependencies bundled and ready to run on all widely used Linux distributions from a single build. They automatically update and gently roll back. The Snap Shop, an app store with millions of users, allows users to find and download Snaps. Install Snap first, then use Snap Manager to install Sublime Merge.

Step 1: Install the Snap.

sudo apt install snapd

snap installed

Step 2: Install Sublime merge.

sudo snap install sublime-merge --classic

sublime merge installed


Smerge, a command-line tool included with Sublime Merge, allows users to manage repositories from the command line. Open repositories, do searches, and merge files with this.


It opens the Sublime merge window shown below,

Sublime merge main screen

To open a specific repository, go to that folder and use the command,

cd workspace/PythonCode
smerge .

info on specific repo

In a very concise manner and without making things complicated, Sublime Merge provides a lot of information about a repository like,

  • Remote branches
  • Local branches
  • Stages and unstaged changes
  • The difference between before and after staging a file.
  • Mergetool
  • Information specific to each file
  • Changes specific to commits

Using this interface to push, pull, add, and commit also makes managing branches simple because it is visually appealing to the user.


There are several GUI-based git clients on the market nowadays, and code editors also offer the necessary features. However, We found Sublime merge to be a beneficial tool for people who prefer git clients over the git command line because of its appealing style and compact view.

My Personal Notes arrow_drop_up
Like Article
Save Article
Related Articles

Start Your Coding Journey Now!