Thursday, 20 May 2021

SVN Installation on Ubuntu, CommandLine usage

 Install SVN 

https://askubuntu.com/questions/258151/how-can-i-install-subversion-client-in-ubuntu

Your question in fact contains the answer.

     sudo apt-get update (update system repo)

  1. Install the subversion commandline tool using sudo apt-get install subversion.
  2. Use the client by typing the command svn command [options] [args].
  3. Do not do anything else. The server will not start and you can happily use the client without the server. You will also not have GUI access.


SVN Command (Checkout, commit with no new file, commit with file)

https://stackoverflow.com/questions/817987/how-to-commit-changes-after-svn-import#:~:text=After%20you%20change%20a%20file,Repository%20in%20the%20SVN%20Book.&text=which%20will%20checkout%20trunk%20from,Make%20changed%20and%20then%20do.

    SVN checkout remote repo to local
    svn checkout http://some.repository.net/trunk/ /my/local/path/to/workingcopy

SVN commit to remote repo from local without new files added on local
svn commit -m "A comment telling what you did the which file"

SVN commit to remote repo from local with new files added

or if you added some files to the working copy do:

svn add /path/to/file /path/to/otherfile

or

svn add /path/to/dir --force

which will add everything in the directory and all of it's subdirectories to the working copy, and finally

svn commit -m "who did what why"


No comments:

Post a Comment