正在加载视频...

视频加载失败

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 次观看 • 1 年前 •via X (Twitter)

42 条评论

Ben Holmes 的头像
Ben Holmes1 年前

For syntax highlighting, install delta:

Himanshu Kumar 的头像
Himanshu Kumar1 年前

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

Ben Holmes 的头像
Ben Holmes1 年前

Oh man, very cool

Jacob Rask 的头像
Jacob Rask1 年前

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

Ben Holmes 的头像
Ben Holmes1 年前

NICE. Setting that

Marek 的头像
Marek1 年前

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

Max 的头像
Max1 年前

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 的头像
Ben Holmes1 年前

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

Max 的头像
Max1 年前

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

Ben Holmes 的头像
Ben Holmes1 年前

Me when I see the word "hunk" 😏

Nick Williams 的头像
Nick Williams1 年前

To commit or not to commit, that is the question

artem 的头像
artem1 年前

ah, the @theo way of doing reviews

Ben Holmes 的头像
Ben Holmes1 年前

@theo love you git

Yasin Kavakli 的头像
Yasin Kavakli1 年前

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

surya 的头像
surya1 年前

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

MHD 的头像
MHD1 年前

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 的头像
Ben Holmes1 年前

Alias to `gap`!

Sidali 的头像
Sidali1 年前

Lazygit is underrated.

如月飛羽🎀🌙🌈 的头像
如月飛羽🎀🌙🌈1 年前

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 的头像
Rick Gigger1 年前

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

Kim 的头像
Kim1 年前

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

•TSP Om 的头像
•TSP Om1 年前

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 的头像
William1 年前

lazygit >>>

Christopher Cook 的头像
Christopher Cook1 年前

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

Klar Name (Senjor Egg parody) 的头像
Klar Name (Senjor Egg parody)1 年前

Or just use emacs and magit.

Varoon Kodithala 的头像
Varoon Kodithala1 年前

Wait this is sick How did I not know about this

MARU ○ 的头像
MARU ○1 年前

lazygit my friend

Ian Channing 🦈@ianchanning@mastodon.social 的头像
Ian Channing 🦈@[email protected]1 年前

Vim fugitive + aider /commit

Muhammad Zafar 的头像
Muhammad Zafar1 年前

That's a very useful feature

Serpent7776 的头像
Serpent77761 年前

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

HappyVolley 的头像
HappyVolley1 年前

What’s your terminal?

a12n 的头像
a12n1 年前

alias gap ftw

Ray Strode 🌟 的头像
Ray Strode 🌟5 个月前

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

Ammon_Ra 的头像
Ammon_Ra1 年前

Show off

DaveOps 的头像
DaveOps1 年前

I did not know about this, but I use lazygit

Sabyasachi Ghosh 的头像
Sabyasachi Ghosh1 年前

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

𝚊𝚌𝚝𝚒𝚘𝚗𝟾𝚛 的头像
𝚊𝚌𝚝𝚒𝚘𝚗𝟾𝚛1 年前

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 🎄 的头像
opine 🎄1 年前

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š 的头像
Michal Jareš1 年前

I can't go back from GitKraken tbh

Josh English 的头像
Josh English1 年前

No substitute for command-line git

Igor 的头像
Igor1 年前

How you edited that video?

Ben Holmes 的头像
Ben Holmes1 年前

@screenstudio! It's my ride or die

相关视频