SVN:不克隆查找最后修订版号
问题:
你想找出远程 subversion 仓库的最后修订版号而不克隆它(例如因为 subversion 克隆需要很长时间)。
解决方案
svn info 提供你需要的信息。只需将它与 grep 和 cut 组合
svn_info_example.sh
svn info http://llvm.org/svn/llvm-project/llvm/trunk | grep Revision | cut -d' ' -f2Check out similar posts by category:
Shell, Subversion, Version Management
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow