Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do SVN Update on my project using the command line

How do I SVN Update my project using the command line?

Then I will manage to call these command lines from C#.

I'm a .NET developer, and I'm using TortoiseSVN.

like image 689
Arrabi Avatar asked Dec 01 '10 11:12

Arrabi


People also ask

What is svn update command?

The SVN update Command. The svn update command lets you refresh your locally checked out repository with any changes in the repository HEAD on the server. It also tells you what has been changed, added, deleted. If a change has been made to a file you have also changed locally, svn will try to merge those changes.

Which command is used to update to the latest revision svn?

Simply type svn update [name-of-directory] , or cd to that directory and type svn update there.

How do I access TortoiseSVN from command line?

Locate TortoiseSVN and click on it. Select "Change" from the options available. Refer to this image for further steps. After completion of the command line client tools, open a command prompt and type svn help to check the successful install.


1 Answers

svn update /path/to/working/copy 

If subversion is not in your PATH, then of course

/path/to/subversion/svn update /path/to/working/copy 

or if you are in the current root directory of your svn repo (it contains a .svn subfolder), it's as simple as

svn update 
like image 161
AndreKR Avatar answered Oct 02 '22 22:10

AndreKR