Git Rebase & Squash in VS Code using GitLens Supercharge

preview_player
Показать описание
Host: @ReynaldAdolphe
0:00 Intro
0:28 Setup GitLens
0:50 Rebase explained
1:45 Setup branches for rebasing
2:20 Rebase demo
3:45 GitLens interactive editor for rebase
5:25 Squash explained
5:50 Squash demo
7:00 GitLens interactive editor for squash
6:50 Rebase to main
9:35 Summary

#git #github #vscode #visualstudiocode #squash #rebase
Рекомендации по теме
Комментарии
Автор

Sucks that simple things like a commit graph are "Pro" features in GitLens and are paywalled. I develop in an offline environment without the ability to "Sign in" to register extensions, so I'm stuck with the free version of GitLens. Also, my rebase had conflicts that needed to be resolved, and this video didn't cover that. I feel like I just need to go back to Webstorm where all this is built in.

MegaMatt
Автор

Thank you so much for your work, vscode is the best editor I have ever worked with, I love it

BehindTheYellowTapeAF
Автор

Thanks! When I discovered it my life with git became easier! You explain well! I just add git push --force if the branch is already pushed before.

RenanFranca
Автор

Thanks! Very informative video, and cool to see your workflow. I love GitLens. If you do more source control videos, I’d like to see how to get out of messy situations. Three way merge. Figuring out what’s really the difference between origin and my branch. Why can’t I merge this with fast forward? What if I want to continue working on a new PR, based on the work from an unmerged one? Things like that.

CalvaTV
Автор

Superb bro & How to maintain the branches like dev QA staging prod branching strategy can you make a video on this & with git work flow.

RiskGamer-dejs
Автор

Don't rebase a public branch! *proceeds to rebase main*

smpyqvd
Автор

Very informative. But to be honest, I dont want to run even a single command (like git rebase -i main in this video) in the terminal. Whats the purpose of these beautiful plugins then ? In intellij squash commit option available out of the box without any plugins. Need a similar feature in VS code (out of the box or via a plugin). Please let the viewers know if such a plugin available for VS code. Thank you

sunilchandranu
Автор

But how does it work if we have rebase conflicts?

gsbbpxt
Автор

I tried to use this with vscode and the interactive rebase editor wasn't there

amygalles
Автор

crab "now looks a lot cleaner" did nothing

josersleal
Автор

Hi. Is squash feature free or when my free trial ends I cannot use this super cool interactive squash? 😢

Redracer
Автор

I’m not able to access the feature, it shows GitLens+ is required 😂

haifzhan
Автор

Has anyone ever told you you look like the second iron man?

rutgerpronk
Автор

My VSC has options for: i) Create Merge Commit, ii) Squash and Merge, iii) Rebase and Merge. None are discussed in your video (sad face)

RodrigoSilveira-vgip
Автор

`git rebase -i New_Feature` on `main` to update the main ref to the tip? geesh, people. Of course you can use the forklift to open the elevator doors for you, but you know, there's a button for that. if you want to teach people the tools, at least do it right. Pretty please.

quetzalcoatl-pl
Автор

Stupid. Should I watch 10 min video to know how to do things which WebStorm does for 5 seconds? Why don't add the same feature right in VSCode?

ullbekind
join shbcf.ru