João Medeiros

Manage Git easily with Lazygit: No more leaving the terminal!

Lazygit is a simple yet powerful terminal UI for Git, designed to make Git management easier and more efficient.

Featured image

Introduction

I’ve always been very enthusiastic about doing everything on the terminal unless something can’t be done (rare) or it’s very difficult to accomplish using a terminal, I would never start a GUI for that. One good example of that is managing git repos locally.

I tried many times using the integrated git client for both Jetbrains IDEs and VS Code and I can’t get used to it, managing repositories is not that difficult and I feel that using a GUI client for it is overkill.

Months ago I discovered Lazygit and it was mind-blowing, the tool helps me manage git repos and I don’t even need to leave the terminal for that, a win-win solution. Today we will explore a bit Lazygit.

Lazygit

I use Lazygit primarily to stage and stash files, commit my changes, rebase, push, and update branches from/to upstream, pretty simple but I feel that is faster to do it through Lazygit, if you try it you’ll probably feel the same as me. On their repository, you can find more details of all the features Lazygit has.

Lazygit example

The best features

Below I’ll add the best features that Lazygit has in my opinion and the ones I use the most:

Other “Lazy” products

Besides Lazygit, you can find other projects from the same author that work similarly to it:

  • Lazydocker: A terminal UI to manage Docker and compose
  • Lazymigrate: To help you managing Rails migrations
  • Lazycli: To turn other CLI commands into a lazy cli

Conclusion

If you’re like me and hate leaving terminal for basic stuff, you should try lazygit. Let me know your thoughts about it in the comments.