美文网首页Androidandroid studio我爱编程
mac版android studio中svn解锁或cleanup

mac版android studio中svn解锁或cleanup

作者: onlyxing | 来源:发表于2018-05-22 15:22 被阅读10次

    mac终端下svn 命令

    在Android Studio的Terminal中,输入:svn help

    就会出现svn的各种命令了,如下:

    usage: svn [options] [args]

    Subversion command-line client, version 1.7.17.

    Type 'svn help ' for help on a specific subcommand.

    Type 'svn --version' to see the program version and RA modules

      or 'svn --version --quiet' to see just the version number.

    Most subcommands take file and/or directory arguments, recursing

    on the directories.  If no arguments are supplied to such a

    command, it recurses on the current directory (inclusive) by default.

    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)

       patch

       propdel (pdel, pd)

       propedit (pedit, pe)

       propget (pget, pg)

       proplist (plist, pl)

       propset (pset, ps)

       relocate

       resolve

       resolved

       revert

       status (stat, st)

       switch (sw)

       unlock

       update (up)

       upgrade

    Subversion is a tool for version control.

    For additional information, see http://subversion.apache.org/


    经常发生文件提交一半,然后再次提交时报错:文件被锁住了。。。

    可以这样解决:(加锁/解锁:lock/unlock)

    svn unlock 路径。。

    svn cleanup 路径。。

    例如:svn cleanup /Users/xxxxx/AndroidStudioProjects/xxxxx/app


    导出(导出一个干净的不带.svn文件夹的目录树)

    svn export 本地检出的(即带有.svn文件夹的)目录全路径  要导出的本地目录全路径

    如下:

    svn export /Users/xxx/AndroidStudioProjects/aaa /Users/xxx/AndroidStudioProjects/aaaBeiFen

    相关文章

      网友评论

        本文标题:mac版android studio中svn解锁或cleanup

        本文链接:https://www.haomeiwen.com/subject/cdohjftx.html