git-ime command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
git-ime: command not found
or when using sudo you get the following error message
sudo: git-ime: command not found
Solutions to git-ime: command not found
How To Fix git-ime: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu git-ime is provided by imediff package.
imediff is:
The imediff command helps you to merge 2 slightly different files with an optional base file interactively using the in-place alternating display of the changed content on a single-pane full screen terminal user interface.
The source of line is clearly identified by the color of the line or the identifier character at the first column.
The advantage of this user interface is the minimal movement of the line of sight for the user.
The line matching logic of imediff has been improved to ignore whitespaces and use partial line matches to provide the best presentation with small chunk of lines.
The automatic 3 way merge logic of the imediff command operates not only on the difference by line but on the difference by character. This is another great feature of the imediff command. So for the non-overlapping changes, it always yields the clean merge.
The “git ime” command helps you to unsquash 2 consecutive commits (HEAD^
,
HEAD
) of a git repository. The “git rebase -i
If any staged changes or local uncommitted changes are found in the git repository, “git ime” immediately exits without changes to be on the safe side.
If the latest commit involves multiple files, “git ime” splits this big commit by the file into multiple smaller commits involving a single file for each commit.
If the latest commit involves only a single file, the commit is split into multiple smaller commits involving a set of minimal partial changes by imediff to be managed interactively later.
This “git ime” is not only useful at the checked out branch head but
also at “edit” prompt during the interactive execution of “git rebase -i
To fix this problem, we can install more using the command below.
sudo apt-get -y install imediff
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install imediff.
sudo apt -y install imediff
Or if you have aptitude installed you can use the following command.
sudo aptitude install imediff
Summary
In this tutorial we learn how to fix git-ime command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.