5 great Git & IntelliJ IDEA tricks

5 great Git & IntelliJ IDEA tricks

Marco Codes

1 год назад

12,242 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Curry
Curry - 15.05.2023 12:13

About the first trick, it is nice to rebase and keep it a straight line when working on the feature branch alone.
But if the feature branch is also shared with teammates, rebasing and force push to origin is a bad idea right?

Ответить
FRZ
FRZ - 01.01.2023 13:37

I just realized that git is almost as hard to use as vim

Ответить
Gerhard AT
Gerhard AT - 23.12.2022 14:43

Great Video! I always used merge instead of rebase. This will change now.

Ответить
Krzysztof Telka
Krzysztof Telka - 04.11.2022 13:06

Some of those actions could be simplified by git config file ;)
For example
[pull]
rebase = merges
[push]
default = simple

Ответить
Юрий Кондрашов
Юрий Кондрашов - 20.09.2022 14:17

Hi Marco
Why did you abandon your "Marco Behler" channel and started a new one without saying a word? I accidentally found this one))
Consider making a short video there, I guess a lot of your viewers will be interested in this one.

Actually I wanted to add a couple of notes regarding the force push.
First one is an advice to make a 5 second pause when the force push dialog appears, reread the branch name, think if there is the latest version of the branch locally and only then press "Force Push" button. Because if the developer mess up at this point it could be hard to restore the lost commits. (Yeah I know about reflog but it has a quite steep learning curve IMHO.)

Second it worth to mention if the developer does a force push on the branch and some other developer works on the same branch this second developer will be forced to do a hard reset on remote to synchronize the changes. Which is quite inconvenient especially if he has his own changes that are not yet pushed to remote. Or maybe you know some tricks how can multiple developers work with force pushes one the same branch?

Ответить
dk
dk - 06.09.2022 15:16

Nice and concise video, good job. Two other great visual features that I like in IntelliJ are "Stash/Unstash uncommitted changes" and "Annotate with Git Blame".

Ответить
Pavel Radkevich
Pavel Radkevich - 02.09.2022 20:20

Great job! Thanks a lot

Ответить
Ayuob Mousa
Ayuob Mousa - 11.08.2022 16:00

good show Marco kept going PRO

Ответить
Davide Pavan
Davide Pavan - 10.08.2022 13:35

Very useful!

Ответить
Vadim Didenko
Vadim Didenko - 05.08.2022 18:04

discovered you by just typing java logging reddit in google
and ooooh booooooi
Bro, you're f***ing saint!!!

Ответить
Volker Götz
Volker Götz - 04.08.2022 00:02

Nice tutorial, I didn't know the third way of rebasing. You asked for favourite git tricks: select any two commits in the log (tree view) and select "Compare..." from the context menu. Very useful for e.g. to check whether the outcome of interactively rebasing and squashing a branch is identical to the original version.

Ответить
nofebak
nofebak - 03.08.2022 13:53

Thanks, that's useful! I never saw the bottom right menu, it's strange they hide it so far away. A little remark, your face is hiding the most relevant part of the screen, though it was possible to read the essential information. Perhaps it would be better placed at the top right, and maybe smaller?

Ответить
Anton Arhipov
Anton Arhipov - 03.08.2022 10:57

Very useful video!

Ответить
Paul Everitt
Paul Everitt - 03.08.2022 09:13

Marco, this video was so good, I watched it twice. It's hard to make a video like this: short but not too short, meaningful examples without being overwhelmed by detail. You nailed it.

Ответить
Michał Zalewski
Michał Zalewski - 03.08.2022 01:20

wow, great tutorial! Thank you! ❤

Ответить
equilibrium
equilibrium - 02.08.2022 19:32

Thank you, Marco! As always - very useful

Ответить
Jacek Kolak
Jacek Kolak - 02.08.2022 19:14

woow, third option for rebase is awesome!

Ответить
Anand
Anand - 02.08.2022 17:40

Need more tutorials.

Ответить
rniestroj
rniestroj - 02.08.2022 17:04

Sayonara 😅

Ответить