Download objects and refs from a remote repository.
# To fetch the latest changes from the default remote upstream repository (if set):
git fetch
# To fetch new branches from a specific remote upstream repository:
git fetch <remote_name>
# To fetch the latest changes from all remote upstream repositories:
git fetch --all
# To also fetch tags from the remote upstream repository:
git fetch --tags
# To delete local references to remote branches that have been deleted upstream:
git fetch --prune
# ---
# To fetch all tags from the remote and overwrite any local tags with the same name:
git fetch --tags --force