github - Git pull not working correctly? -


i had weird experience git today. project has database dump on github. today there changes made dump repo on github on develop branch. pulled changes (git pull origin develop) , updated local database changes. reason still had previous version of db rather new one. checked sha in git log , correct sha (the latest sha). when used vim inspect contents of file older file.

i tried pull several more times each same result. ran

git reset --hard origin/master 

(a different branch) did

git pull origin develop 

and sha same (the latest sha) file correct file time (the latest file expected).

i , still perplexed have caused this. can offer insight may root cause of issue?

as thomas moulard mentioned in comments, if have local, uncommitted changes in working directory, , pull/merge changes in not touch files, local changes in file stay (otherwise, error).

so if pulled something, , there no conflict, file still different, it’s possible these local changes.

running git status tell though; tell files have uncommitted changes. can run git diff see how local changes not added index differ last committed state.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -