Is it possible that git status tells you everything is up to date when actually it is not? -
yesterday, merged branches worked on during weekend master. deleted every branch except master. of these changes done during weekend local repository in work computer outdated. today came work , ran git status
, , said
on branch master branch up-to-date 'origin/master'. nothing commit, working directory clean
however 100% sure local repo @ work not date, because made several changes. after running git pull
downloaded changes , worked fine.
my question is: possible under circumstances git status
can tell you date remote when not? not sure if expected behavior or git messed up.
git status
not check actual remote repository. tells if up-to-date respect local copy of remote repository. remember origin
cached copy of remote resides on computer, , not remote repository itself.
you have git fetch
update local cache, after git status
tell if behind or not.
Comments
Post a Comment