difference between pull and fetch 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: difference between pull and pull request
If you use git pull, you pull the changes from the remote repository
into yours.
If you send a pull request to another repository, you ask their
maintainers to pull your changes into theirs (you more or less ask
them to use a git pull from your repository).
Example 3: git pull or fetch difference
git fetch is the command that tells your local git to retrieve the latest meta-data info from the original (yet doesn’t do any file transferring. It’s more like just checking to see if there are any changes available).
git pull on the other hand does that AND brings (copy) those changes from the remote repository.