O'Reilly logo

Learn to Program with Minecraft Plugins, 2nd Edition by Andy Hunt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visit Multiple Realities

Being able to revert to a previous commit is great; it’s like time travel. You can always revisit your past. But why stop at just one past?

Git has a really neat feature called “branches.” These aren’t like branches on a tree, but more like branches in the space-time continuum: they are alternate realities, or alternate timelines like in science-fiction stories.

Here’s how you might use branches: Suppose you have everything working, and maybe you’ve even released your plugin to the world. You want to experiment with a new feature or two, but you need the current version of your plugin around as well, in case there are any fixes you need to make for your users. You need two different timelines: one where the plugin ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required