How to squash and rebase in git

  Рет қаралды 10,866

Swift Arcade

Swift Arcade

2 жыл бұрын

Git rebase is a handy tool to have for creating nice clean history in your git repository. Come on in to see how it works and how it can help you clean up your commit history.
Level Up
Data Structures & Algorithms
www.udemy.com/course/the-swif...
Level Up AutoLayout
www.udemy.com/course/level-up...
Level Up in Swift
www.udemy.com/course/level-up...
Twitter
@jrasmusson

Пікірлер: 26
@limonatamber
@limonatamber 11 ай бұрын
Thank you!!! A lot of people say ":wq", but they didn't mention press "esc" before that !!!! That's why I found your video! Save my day!
@fiendgrin
@fiendgrin 6 ай бұрын
ngl, the only video that actually helped me understand squash, and taught me how to use it
@user-em9js9el5g
@user-em9js9el5g 3 ай бұрын
Happy to see howard from better call saul is doing good and switched careers to software engineering .
@indracahyadi4757
@indracahyadi4757 7 ай бұрын
Very nice tutorial! 🎉
@GorillaDev417
@GorillaDev417 2 жыл бұрын
Awesome video man! Definitely going to start using this!
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Excellent! Let me know if you have any questions.
@DebugWithAdam
@DebugWithAdam Жыл бұрын
Superb, in a short video, I learned a lot ;)
@romancebula1263
@romancebula1263 2 жыл бұрын
And once again your video helped me a lot …. I was struggling with this editor and now I know how to deal with it:) Thanks again 🍺🍺
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
You are not the only one. It definitely takes some getting used to. Most welcome 🚀.
@andonidasilvaotero9652
@andonidasilvaotero9652 2 жыл бұрын
Good and simple tutorial. Thanks Jonathan
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Very welcome Andoni - thanks for coming by!
@abymathew575
@abymathew575 2 жыл бұрын
you are really a great teacher
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Thank you Aby. Much appreciated.
@janvikalra6490
@janvikalra6490 Жыл бұрын
super helpful! thanks a bunch
@dylanngo4454
@dylanngo4454 4 ай бұрын
Thank you so much bro :))
@rachelemsley5972
@rachelemsley5972 2 жыл бұрын
Use the fixup option if you don't want the commit messages for the commits you're squashing
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
No way - I didn't even know you could do that. Trying now. Thanks Rachel!
@lokeshios927
@lokeshios927 2 жыл бұрын
Nice One... Please Do video on difference between merge and rebase
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Thanks for the suggestion Lokesh. Merge just merges two branches together respecting the history. Rebase just replays your changes on top of the branch you rebase too. I prefer rebase, because that way I never mess up the branch I am merging too (any conflicts are my own). But I have heard others say they like merge for reason (though I am not sure why). Some googling will no doubt better explain the differences. That's my best explanation for now. Cheers and thank you for asking. Will see if I can create a video one day because it is a popular question.
2 жыл бұрын
Thanks for the handy commands Jonathan. Would be great if you could make a video about mirror a huge git repo. Let's say we have a huge git log history, as well the source code size. But new repository has a size limitation. So, what I would like to do, push only last a few commits to the new repo. I'll keep my original repo in origin, but mirror the new repo for less commits. I just noticed that whenever I want to sync repos, do I have to take care of push commit (always commit after the last commit). I assume this command will push whole history `git push mirror master` Or what is the best practice to reduce the size of log history (one way is squash yes but doing that will also take time), also in the past accidentally they have submitted SDKs source codes into the repo where it is root cause of the huge size...
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Hi Nesim. Once option for reducing the size of a huge repos is to just create a new repos, copying the latest version in there, and then starting all over. Yes you lose the history, but if you don't really care it can greatly reduce the size of your repos - by starting fresh. All the best!
2 жыл бұрын
@@swiftarcade7632 Thank you very much for your kind reply. Yes, will go that way as it is temporary.
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
@ No problem. And good luck!
@swoleavocado
@swoleavocado 2 жыл бұрын
So you're not supposed to use --force ?! ...
@swiftarcade7632
@swiftarcade7632 2 жыл бұрын
Haha. You can use force. Just be careful :)
@familyshare3724
@familyshare3724 Жыл бұрын
cwsquash . to repeat
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 86 М.
Git: how cleanup commit history using interactive rebase
15:28
Team Programmer
Рет қаралды 5 М.
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 9 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 9 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
How To Squash Your Git History Like A Pro
13:09
Colt Steele
Рет қаралды 52 М.
GIT. Interactive Rebase. How to work with it?
17:02
Front-end Science із Сергієм Пузанковим
Рет қаралды 42 М.
How to Squash Git Commits
12:01
Cameron McKenzie
Рет қаралды 8 М.
Git rebase: how to resolve conflicts
7:32
Team Programmer
Рет қаралды 38 М.
Learn Git Rebase in 6 minutes // explained with live animations!
6:43
The Modern Coder
Рет қаралды 767 М.
Swift - Stack vs Heap
9:58
Swift Arcade
Рет қаралды 7 М.
Git Rebase & Squash in VS Code using GitLens Supercharge
9:57
Visual Studio Code
Рет қаралды 60 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 893 М.
Git MERGE vs REBASE: Everything You Need to Know
4:34
ByteByteGo
Рет қаралды 346 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 1,9 МЛН
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 3,8 МЛН