FreeKB - Commit an updated file in Subversion (svn commit)
Commit an updated file in Subversion (svn commit)

Home > Search


This assumes you have Subversion installed on your local PC. These examples are based on Linux.

This assumes you have either added a new file in your local Subversion repository (branch) or you have updated a file in your local Subversion repository (branch), and you are now ready to commit the file.

Use the svn commit command to commit a file. Commit creates a new version of the file in your local Git repository.

svn commit foo.txt

 

Your default editor will open, where you will be prompted to enter a commit message. Enter a message, and save. If the commit is successful, the following will be displayed.

Sending foo.txt
Transmitting file data .
Committed revision 123456

 


--message

The -m or --message option can be used to include the commit message, so that your default editor is not used to enter the commit message.

svn commit --message 'First Commitment' foo.txt

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter a94ee in the box below so that we can be sure you are a human.




Comments