commit / checkin / ci SVN Command

How to use commit / checkin / ci SVN (Subversion) Command in Linux / Windows?

Explanation


commit / checkin / ci command is used to upload the changes which you have done in the local server, in to the server repo.

Usage:

svn ci <filename> -m <log message>
or
svn commit <filename> -m <log message>
<filename> - You can either use a file name or folder name or need not use it.
The single file will be uploaded if a name is given or all files with new revision in that folder will be uploaded.
<log message> - Give the message about the changes that are done in the current revision of the file or files.

Example:

  • Now you can upload the changes to the server using below command.
    svn ci test.txt -m update
    or
    svn commit test.txt -m update

  • Output:-----------------------------------------------
    Transmitting file data.
    Committed revision 3.
    ---------------------------------------------------------

Result:


By executing the above cmd, the file 'test.txt' will be updated in the repo and a message with the new version of the file will be derived as output.

Ask Questions

Ask Question