Keep Your Branch in Sync
55%
Pull Without the Ugly Merge Commits
The most common place you'll use rebase in daily work is when pulling. Imagine you've made a local commit on main, but someone else has also pushed a commit to GitLab. A regular git pull would create a merge commit to combine them.
To avoid that, use:
git pull --rebase
Learn Git in a Day
Everything you need, nothing you don'tEnroll now to unlock all content and receive all future updates for free.
