Delen via


Checkin (Command Line)

Updates Visual SourceSafe with changes made to a checked out file and unlocks the database master copy. You can also use the command name Update (for backward compatibility). For definitions of the command options, see Command Options in this Help system.

Syntax

ss Checkin VSS files [-C] [-H] [-I-] [-K] [-N] [-O] [-P[project]] [-R] [-W] [-Y] [-?]

Project Rights

You must have the Check Out/Check In project right to use this command.

Remarks

If you check in many files at once, Visual SourceSafe asks for a comment for each file individually. If you want them all to have the same comment, use the -C option.

It is possible to check in a file and create a new version while leaving the file checked out. To keep a file checked out, use the -K option. You can also make this behavior the default by setting the Keep_Checkedout initialization variable in the Ss.ini file.

Sometimes you check in a file that has not changed and create a new version. Visual SourceSafe displays a message asking if you actually want to perform a check-in. If you say No, Visual SourceSafe performs an Undocheckout command, so that the file is unlocked, but no new version is logged. You can avoid this prompt by setting the Update_No_Change initialization variable in your Ss.ini file.

Examples

Checks in changes made to the file Test.c:

ss Checkin TEST.C

Checks in all files that you have checked out from the current project:

ss Checkin * -P

See Also

Reference

Keep_Checkedout Initialization Variable
Undocheckout (Command Line)
Update_No_Change Initialization Variable

Other Resources

Command Line Commands
Command Options