public Ref checkoutTag ( Git git , String tag ) { try { return git . checkout ( ) . setName ( "tags/" + tag ) . call ( ) ; } catch ( GitAPIException e ) { throw new IllegalStateException ( e ) ; } }
Checkout existing tag .