Loading video...

Video Failed to Load

Go Home

Everyone: GitHub Desktop is better! No, VS Code! Me: ...I just use `git add -p`. Walks you through each change, hunk for hunk, and lets you accept with `y`. It’s like a mini code review before you commit. Pair that with dandavison/delta, and you get syntax highlighting too 👀

116,791 views • 1 year ago •via X (Twitter)

42 Comments

Ben Holmes's profile picture
Ben Holmes1 year ago

For syntax highlighting, install delta:

Himanshu Kumar's profile picture
Himanshu Kumar1 year ago

Smart... Also, consider `git add -e` for finer control thru your fav editor.. Opens up powerful options...

Ben Holmes's profile picture
Ben Holmes1 year ago

Oh man, very cool

Jacob Rask's profile picture
Jacob Rask1 year ago

pager = delta --side-by-side is wonderful

Ben Holmes's profile picture
Ben Holmes1 year ago

NICE. Setting that

Marek's profile picture
Marek1 year ago

I love Lazygit. It’s by far my favorite CLI tool ❤️❤️❤️

Max's profile picture
Max1 year ago

I always find it hard to see all the changes through a terminal. Mostly cause the window size is too small that I need an IDE to see the whole picture

Ben Holmes's profile picture
Ben Holmes1 year ago

@maximabytes You're allowed to full screen your terminal. It's okay

Max's profile picture
Max1 year ago

But in all seriousness, excited to see what you guys will be cooking up!

Ben Holmes's profile picture
Ben Holmes1 year ago

Me when I see the word "hunk" 😏

Nick Williams's profile picture
Nick Williams1 year ago

To commit or not to commit, that is the question

artem's profile picture
artem1 year ago

ah, the @theo way of doing reviews

Ben Holmes's profile picture
Ben Holmes1 year ago

@theo love you git

Yasin Kavakli's profile picture
Yasin Kavakli1 year ago

tbh since using lazygit i've never wanted to use something else

surya's profile picture
surya1 year ago

skill issue. if you're not doing `git add .` all the time. are you even serious about version control?

MHD's profile picture
MHD1 year ago

my problem is that I’m so addicted to git add . aliased to `gaa`, I do it without even thinking sometimes. and I always end up relying on the PR to review my changes. maybe I need to force my muscle memory to learn git add -p.

Ben Holmes's profile picture
Ben Holmes1 year ago

Alias to `gap`!

Sidali's profile picture
Sidali1 year ago

Lazygit is underrated.

如月飛羽🎀🌙🌈's profile picture
如月飛羽🎀🌙🌈1 year ago

I can't stop using Magit in Emacs, which functions like an interactive `git status` where you can easily eg. revert parts of hunks by just selecting lines. `git add -p` to me feels like flying blind between hunks in comparison

Rick Gigger's profile picture
Rick Gigger1 year ago

That is nice but I just can’t get myself to give up the nice UI in Fork for doing commits

Kim's profile picture
Kim1 year ago

Great shout, I'm usually just a git add ., I'll have to keep -p in mind, it looks useful. 🙂

•TSP Om's profile picture
•TSP Om1 year ago

Nothing beats a surgical hunk edit. We use `git add -p` + delta while tuning the code that orchestrates our grow-room constellations—clean commits, clean crops. Tip: switch diff.algorithm to patience for even clearer star-map hunks.

William's profile picture
William1 year ago

lazygit >>>

Christopher Cook's profile picture
Christopher Cook1 year ago

Tell me you've never used Gitkraken without telling me you've never used Gitkraken.

Klar Name (Senjor Egg parody)'s profile picture
Klar Name (Senjor Egg parody)1 year ago

Or just use emacs and magit.

Varoon Kodithala's profile picture
Varoon Kodithala1 year ago

Wait this is sick How did I not know about this

MARU ○'s profile picture
MARU ○1 year ago

lazygit my friend

Ian Channing 🦈@ianchanning@mastodon.social's profile picture
Ian Channing 🦈@[email protected]1 year ago

Vim fugitive + aider /commit

Muhammad Zafar's profile picture
Muhammad Zafar1 year ago

That's a very useful feature

Serpent7776's profile picture
Serpent77761 year ago

This feels super cumbersome in most cases compared to using tig.

HappyVolley's profile picture
HappyVolley1 year ago

What’s your terminal?

a12n's profile picture
a12n1 year ago

alias gap ftw

Ray Strode 🌟's profile picture
Ray Strode 🌟5 months ago

if you like `git add -p` you'll love git-stage-batch

Ammon_Ra's profile picture
Ammon_Ra1 year ago

Show off

DaveOps's profile picture
DaveOps1 year ago

I did not know about this, but I use lazygit

Sabyasachi Ghosh's profile picture
Sabyasachi Ghosh1 year ago

Typically i just use `git commit - - verbose . ` and scroll through and double check

𝚊𝚌𝚝𝚒𝚘𝚗𝟾𝚛's profile picture
𝚊𝚌𝚝𝚒𝚘𝚗𝟾𝚛1 year ago

I also dont like IDEs git integration. Somehow I have never been able to build trust on IDEs that will run the commands that I intend. Th positive side is, I am not bound to any IDE. Negative is that sometimes it takes 2 mins to complete a task which can be dkne in 2 clicks

opine 🎄's profile picture
opine 🎄1 year ago

Nah this is shit, VSCode is way better and cleaner. You see side by side changes and just click a button to commit/push.

Michal Jareš's profile picture
Michal Jareš1 year ago

I can't go back from GitKraken tbh

Josh English's profile picture
Josh English1 year ago

No substitute for command-line git

Igor's profile picture
Igor1 year ago

How you edited that video?

Ben Holmes's profile picture
Ben Holmes1 year ago

@screenstudio! It's my ride or die

Related Videos