git fetch vs pull vs rebase code example
Example 1: git fetch vs pull
Git Fetch ==>The Git Fetch command
downloads commits, files from a remote
repository into your local repo.
Fetching is what you do when you want
to see what everybody else has been working on
Git Pull ==> fetch and merge any
commits from the remote branch
Example 2: git fetch rebase
You've branched out, made some commits, then you
need the latest from master. On your branch:
git fetch origin
git rebase origin