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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -