Summary of some methods of using SVN under Linux

When we want to checkout a project, I usually use SVN, but SVN check out is very slow. At this time, we can use SVN under the Linux command line, so the speed is flying. Hehe, I learned from my colleagues, by the way Started my linux trip.

svn help can see all the commands supported by svn:

 

Available subcommands:
   add
   blame (praise, annotate, ann)
   cat
   changelist (cl)
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mergeinfo
   mkdir
   move (mv, rename, ren)
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   resolve
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)

 

Checkout the required items. The command used for this process is svn checkout or svn co

 

Command to submit code:

At this time, the svn commit / svn ci command is used. When submitting, it is best to use -m with a comment, so that it is more convenient to check in the future.

 svn ci

 

Update file:

 

Before every time you start coding, it's a good idea to update the code to see if other people have modified the code. The updated command is: svn update / svn up

You can switch to the directory you want to update, directly execute svn update without having to follow a specific file or directory, or you can specify the file or directory to be updated by yourself.

 

View log:

This function is especially useful when you find that the code has changed and you need to know what changes have been made, provided that everyone has written comments for each update.

Use the command svn log

 

You can also go to the Internet to search for more ways to use SVN commands under Linux

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326828564&siteId=291194637