As a developer, my assumption is:
You are working with Git literally every hour.
But I wonder, how many times you felt the necessity of a tool that makes the repetitive commands/steps a bit more convenient for the things like:
- Seeing the diff
- Quickly stage/unstage files
- Seeing the logs
- A tool to quickly open PR regardless of your SCM
Well, that's when lazygit comes to the rescue. It's a terminal UI for git commands written in Go.
Just install it following the instruction from the official repository. Then optionally you can set an alias in your shell configuration to quickly open lazygit. In my case, it's lg
.
Here are the features I use most of the time from this tool.
- Stage/unstage like bullet
- Open a PR with a single keypress
- Search through commits
Stage/unstage like bullet
Every time performing these type of commands is really a bit painful when a tool like lazygit exists:
git add foo.go
git add bar.js
git logs
git diff foo.go
With lazygit you can quickly see through the changed files and stage/unstage them accordingly. As well as, you can see the changes on each file very easily.
Open a PR with a single keypress
This is my favorite feature of this tool. Because every time I commit something and want to create PR/MR, I have to do a bunch of repetitive clicks here and there. On top of that, sometimes I have to work with GitHub, sometimes GitLab. So even if I wanna use the GitHub CLI tool hub
or GitLab CLI tool glab
, I am ending up using two different tools. So it's nice when I can open PR/MR just by a shortcut within a second or two regardless of what SCM I am on.
Search through commits
When I have to search through a bunch of commits, lazygit comes very handy. Altho there are other tools that exist as well. But I end up utilizing this tool a lot in this case it's I don't have to open another tool or even VS Code for this.
lazygit is open-source. And easy to download and install, so definitely give it a go!
Top comments (7)
Subscribe
Pratham Sharma
Pratham Sharma
I really like playing with computers. I generally write web development related stuff. But may also chatter about software and programming in general.
-
Email
prathamsharma173@gmail.com
-
Location
India, Delhi
-
Work
Software engineer at codeword.tech
-
Joined
• Nov 24 '21
- Copy link
Honestly I love this tool. I use it everywhere. At day job and at home
Waylon Walker
Waylon Walker
👋 Hey there, I am Waylon WalkerI am a Husband, Father of two beautiful children, Senior Python Developer currently working in the Data Engineering platform space. I am a continuous learner, and sha
-
Location
Peoria, Illinois
-
Work
Python Dev
-
Joined
• Nov 23 '21
- Copy link
Lazy Git looks really cool, I use gitui quite often. The biggest thing I like is that I can quickly see the diff as I am commiting. Works really well when you have a coulple of files to commit, not so much when there are dozens, You end up just spamming arrow keys.
Do you use pre-commit? curious how well lazy.git works with pre-commit.
Tahsin
Tahsin
I ❤️ Go, Java, & TypeScript.I mostly work with back-end technologies using those languages.
-
Location
Indonesia
-
Pronouns
he/him
-
Work
Software Engineer
-
Joined
• Nov 23 '21
- Copy link
I think it doesn't support pre-commit yet.
Tahsin
Tahsin
I ❤️ Go, Java, & TypeScript.I mostly work with back-end technologies using those languages.
-
Location
Indonesia
-
Pronouns
he/him
-
Work
Software Engineer
-
Joined
• Jun 8
- Copy link
Update: it supports pre-commit now.
Waylon Walker
Waylon Walker
👋 Hey there, I am Waylon WalkerI am a Husband, Father of two beautiful children, Senior Python Developer currently working in the Data Engineering platform space. I am a continuous learner, and sha
-
Location
Peoria, Illinois
-
Work
Python Dev
-
Joined
• Nov 23 '21
- Copy link
awe, thanks for the info.
Tahsin
Tahsin
I ❤️ Go, Java, & TypeScript.I mostly work with back-end technologies using those languages.
-
Location
Indonesia
-
Pronouns
he/him
-
Work
Software Engineer
-
Joined
• Jun 8
- Copy link
It supports now.
Bernd Wechner
Bernd Wechner
Busy, busy, busy .... see https://cutt.ly/busybusybusy.
-
Location
Hobart, Tasmania
-
Education
BE (Mech) UoW, ME (IT&T) FU among other things (if you're into acronyms)
-
Work
Quality Assurance Engineer
-
Joined
• Nov 24 '21
- Copy link
Have to admit I love gitkraken. It's cross platform, free (freemium actually but one of the few freemium products I love) and has the best visualisation of branches and commits I've seen anywhere.
For further actions, you may consider blocking this person and/or reporting abuse