git pull without updating remote -
suppose have run git fetch, , want run git pull, bring local mybranch up-to-date origin\mybranch.
but!! in mean time, after running fetch, internet connection has dropped :( now, when run git pull fails, because can't see remote. i'd still local portion of pull.
is there way tell git pull run without doing initial git fetch?
note: git reset --hard update mybranch. git pull doesn't that.
i guess way phrase question "what second command satisfies: git pull = git fetch + git ???"?
in fact depends on configuration.
in default configuration, if you're on my_branch has upstream origin/my_branch, git pull can considered as
get fetch merge origin/my_branch configuration (or command line arguments) can change merged. configuration can change 2nd step merge rebase. when
"what second command satisfies: git pull = git fetch + git ???"?
there's no 1 answer ??? is, by default merge.
Comments
Post a Comment