当前位置:网站首页>Svn command

Svn command

2022-06-26 09:56:00 crystal199708

  1. Download the code from the server :
    svn co url( The address of the server ) path( Local address )
  2. Update code :
    svn update / svn update -rNum(Num Version number )
  3. Submission code :
    (1) svn add path( Directory to add / file )
    (2) svn delete/del/remove/rm path( Directory to delete / file )
    (3) svn move/mv/rename/ren SRC DST
    SRC、DST Are the two URL, The operation will be performed in the server , No submission required , Otherwise, you need to submit in the parent directory .
    (4) svn copy SRC DST
    (5) svn revert -R . Undo all changes .
    (6) svn revert Path( To undo the modified path ).
    (7) svn commit -m “Log Message” ( Submit log information ) Path( Path to submit , No default current path )
    commit Can be replaced by check in Abbreviation ci, The effect is the same .
  4. see
    (1) View differences :
    svn diff > LCC.patch
    (2) Check the log :
    svn log
    (3) View the last submission information :
    svn info
  5. Delete svn Account information :
    rm ~/.subversion/auth
原网站

版权声明
本文为[crystal199708]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202170548393713.html