简体   繁体   中英

SVN update from command line

I'd like to do the SVN update from a batch file:

I know the following data :

  • SVN repro URL
  • working directory (where to copy local file)
  • username
  • password
  • depth full recursive

After I studied SVN HELP I still failed to write a proper command line statement to execute the update from a batch file. Can someone write the correct statement for me?

For the initial check out you can use:

svn co --username {username} -- password {password} --no-auth-cache {url_to_repo} {working directory for local folder}

You will need to permanently accept any SSL certificates here (if using an https url).

Then from within the working directory in a batch file run the command:

svn up --username {username} -- password {password} --no-auth-cache

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM