...

/

Pull and Fast-forward with the git rebase Command

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.

Fast-forward with rebase

When we learn git merge, we can fast-forward a left-behind branch by following the steps ...