You check in files after editing to make them available to users with appropriate rights. Until you check in a file, changes are saved in your local version only.
The new version of each checked in file is associated with the current versions of its references. When this file version is accessed, all reference versions are retrieved as if they were attached.