FreeKB - Add a file to Subversion (svn add)
Add a file to Subversion (svn add)

Home > Search


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

Let's say you have checked out http://example.com/svn/repo/testing from the master Subversion repository to /tmp/SVN on your local PC. Create a new file in the directory.

cd /tmp/SVN
touch foo.txt

 

Add the new file to Subversion.

svn add foo.txt

 

The svn status command will now show that foo.txt has a status of A (ready to be committed).

svn status foo.txt
A         SVN/foo.txt

 

You would then commit the new file.



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 ef2aa in the box below so that we can be sure you are a human.




Comments