Pull and Fast-forward with the git rebase Command

Learn about git pull and fast-forward with rebase as well as the difference between the merge and rebase commands.

The git pull command with --rebase

We can configure git pull with --rebase instead of --merge.

 $ git pull --rebase origin master

It’s recommended to do a git fetch + git rebase instead of using git pull. Note that git pull = git fetch + git merge.

Get hands-on with 1200+ tech skills courses.