
In this article, we will guide you through the process of installing LazyGit on Ubuntu, so you can start using it right away.
What is Lazygit?
A free and open-source command-line utility for managing Git repositories is called Lazygit. It offers a quick and effective way to communicate with your Git repository, making it simple for you to complete routine operations like committing, pushing, and pulling.
Additionally, it offers more sophisticated functionality like branch management, stashing, and commit-graph visualization. Lazygit is a fantastic option for anyone searching for a simple way to manage their Git repositories because it is made to be user-friendly, intuitive, and quick.
Users of Lazygit may swiftly switch between branches, examine the list of their repositories, and view the current branch.
Install Lazygit on Ubuntu
Installing Lazygit on Ubuntu is relatively simple. First, you will need to install the required dependencies. This can be done by running the following command:
sudo apt-get install build-essential libssl-dev libreadline-dev zlib1g-dev
Get the Latest version of Lazygit release using the below command
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
Download the installer file
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
Move the installer file to the desired location
sudo tar -xf lazygit.tar.gz -C /usr/local/bin/
Verify the installation
/usr/local/bin/lazygit

That’s it! You have now successfully installed Lazygit on your Ubuntu system.
Uninstall Lazygit
For uninstallation simply remove the installer file, and it will uninstall it.
rm -rf /usr/local/bin/lazygit
Conclusion
In this article, we have guided you through the process of installing LazyGit on Ubuntu from the source code. Whether you are a beginner or an experienced developer, LazyGit is an excellent tool for users.
If my articles on TipsonUNIX have helped you, kindly consider buying me a coffee as a token of appreciation
Thank You for your support!!