If I type
svn info|grep Revision
I get the latest revision in all branches, but how do I get the latest commit only in the main trunk?
It's svn info <URL-to-trunk> -r HEAD
"-r HEAD" part is not really required because svn info
shows the most recent commit made to the specified version of the object by default.
See SVNBook | svn info
.
I found it here: How do you determine the latest SVN revision number rooted in a directory?
svnversion -c /path/to/your-projects-local-working-copy/. | sed -e 's/[MS]//g' -e 's/^[[:digit:]]*://'