add SVN Command

How to use add SVN (Subversion) Command in Linux / Windows?

Explanation


add command is used to append a new file in to the server.

Usage:

svn add <filename>

Example:

  • Create a file locally name test2.txt (> test2.txt)
    Now you can insert it to the server repo as in the below command.
    svn add test2.txt
    Output:-----------------------------------------------
    A test2.txt
    ---------------------------------------------------------

  • Then commit after the directory is created.
    svn ci -m add

Result:


From the above cmd, the file 'test2.txt' will be added in to the server repository. Dont forget to call svn commit to make the new file commited in to the repo.

Ask Questions

Ask Question