2023-07-06 · Christophe Pelé · FuboTV
-
Merging is powerful, it gives you truth:
-
Rebasing is powerful too! It gives you order:
-
But rebasing also lets you do useful things like editing commits, removing them, squashing them, fixing them up...
- Git words
- "Git" menu
- Commit, push, pull, rebase, merge, rebase...
- IDEA words
- "VCS" menu
- IDEA ⇒ Android Studio, GoLand, WebStorm...
- Update project, commit, push
- IDEA lets you use both
- Try it!
- Hit Shift key twice...
- Then type
git merge
,git fetch
... - Or type "update project"
- It's useful to know Git words and commands
- But not mandatory
- IDEA lets you rewrite history
- Not (always) mentioning
rebase
- Lets you rebase if you want
- Keeps remote branch relatively safe
- Makes it hard rewriting remote history
-
Easy stuff
-
Edit message
-
Drop
-
Squash
-
😌 Prevent rewriting remote history
-
Video:
-
Rebase stuff
-
Fix-up
-
🤩 Interactively rebase
-
Video: