How to Commit code into SVN from Linux server?

First I assume that the SVN repository is already created since you just want to get code and commit to it.

But basically as the comments describe there is not much to it.
You will need SVN (the command) and a Username and Password.

Again, I assume you have all of these things ready.

First thing you need to do is to check-out the repository so that you have the code on your local server. Once you have to code, then you can start to edit/add and change it and then commit it back.

svn co projectname

“co” stands for “Check Out” witch is the equivalent of “Clone” when we are talking GIT.

Now that you have checked out your SVN project, you can begin to edit and change it as you like (granted you have the permissions)

edit some.file (make changes to a file)
svn commit -m "My change info"

I won’t begin to talk about if you add files, delete files or rename files.
You will need to look into SVN documentation for that, but again I assume that you already know these things as you just wanted to connect to a SVN repository.

I would recommend looking into some of the documentation Apache has on SVN.
(Apache Foundation is the project maintainer of SVN)

Full SVN manual

Browse More Popular Posts

Leave a Comment