You check in files after editing to make them available to users with appropriate rights. Until you check in a file, changes are only saved in your local cache.
Checking in Files Check In Dialog Box Check-in Warnings File is Open in Another Application Missing Mandatory Attributes Dialog Box