I do not know how many times I have commited a old version of a prefab when checking into our git repo because Unity editor does not save change to disk when applying change to a prefab. You need to quit unity or save current scene.
You can also do File → Save Project.