Saturday, February 7, 2015

Add Files or Folder to SVN

1. First go to your home directory and then svn directory example: home/ your svn directory name like vkpandey
2. Create a folder example: reading2
3. Put your file into the directory example: put reading2.txt into reading2 folder
4. Right click and open terminal from your svn directory name (goto vkpandey and right click and click on "open in terminal" option)

5. Enter the command svn add reading2 to add reading2 directory and it's file in a SVN
The command gives you the message like:
                         A         reading2
                         A         reading2/reading2.txt



6. Enter the command  svn ci -m "COMMIT MESSAGE"

The command gives you the message like:
                       Adding         reading2
                       Adding         reading2/reading2.txt
                       Transmitting file data .
                       Committed revision 60.

7. Enter the command svn status to check the status
if it does not show any message and goes to next command line, then it is successful.

To make sure that your svn update was successful, you can do one more thing like:

1. Delete the folder containing file reading2
2. Open command prompt (right click and click on "open in terminal")
3. In a command line, enter the command svn update
If your update was successful, this command will bring you back the deleted folder and it will print the message like this:
                       Updating '.':
                       Restored 'reading2'
                       Restored 'reading2/reading2.txt'
                       At revision 61.
                       dyson[996]%

No comments:

Post a Comment