Is git fetch notification only? -
i learning git through the book , git help
command.
i changed content of origin
, commited it. launched git fetch origin
command in "local copy" of repository.
$ git fetch origin remote: counting objects: 4, done. remote: compressing objects: 100% (3/3), done. remote: total 4 (delta 0), reused 0 (delta 0) unpacking objects: 100% (4/4), done. d:/_git.sandbox/./my_remote_project a03e9df..837c57d master -> origin/master
this info not clear me... book:
as saw, data remote projects, can run:
$ git fetch [remote-name]
command goes out remote project , pulls down data remote project don’t have yet. after this, should have references branches remote, can merge in or inspect @ time.
if after git fetch origin
origin
unavailable error git pull
. so, in opinion, git pull
requeries available origin
, uses still instead of downloaded remote repository's changes. i.e. git fetch
tells me origin
repository changed (if occurred), doesn't download these changes local repository. download these changes , implement in local version of repository execute git pull
. i.e. git fetch
method of informing up-dating of repository of 'origin' when launch 'git status'? right?
no.
git fetch
downloads remote repository's changes don't have stored locally. not apply them local branches though.
git pull
git fetch
followed git merge
of branches have set merge when pulling.
Comments
Post a Comment