Last active
May 11, 2016 23:56
-
-
Save Dispader/2da1c5b79759efea9f70046e606b1597 to your computer and use it in GitHub Desktop.
interactive Groovysh session exploring GrGit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groovy:000> :load https://git.io/v2N1I | |
===> true | |
groovy:000> :register GrabCommand | |
===> true | |
groovy:000> :grab 'org.slf4j:slf4j-simple:1.7.21' | |
groovy:000> :grab 'org.ajoberstar:grgit:1.7.0' | |
groovy:000> import org.ajoberstar.grgit.Grgit | |
===> org.ajoberstar.grgit.Grgit | |
groovy:000> grgit = Grgit.open() | |
===> org.ajoberstar.grgit.Grgit@12f3afb5 | |
groovy:000> grgit.describe { } | |
===> null | |
groovy:000> grgit.tag.add(name: 'v0.0.0') | |
===> org.ajoberstar.grgit.Tag(org.ajoberstar.grgit.Commit(f4f40cda150365bebef4ecce82e01c7fcdd00329, [], org.ajoberstar.grgit.Person(Jake Gage, jake.gage@gmail.com), org.ajoberstar.grgit.Person(Jake Gage, jake.gage@gmail.com), 1462842858, Initial commit | |
, Initial commit), org.ajoberstar.grgit.Person(Jake Gage, jake.gage@gmail.com), refs/tags/v0.0.0, , ) | |
groovy:000> grgit.describe { } | |
===> v0.0.0 | |
groovy:000> grgit.tag.remove(names: ['v0.0.0']) | |
===> [refs/tags/v0.0.0] | |
groovy:000> grgit.describe { } | |
===> null | |
groovy:000> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment