Share Code

Distributing code via GitHub is a very popular way of sharing your code with the world. All you need to do is give out your GitHub project URL (in this example, https://github.com/andyhunt/minecraft.git). Now anyone in the world can use git clone to get a copy of your code, and they can make their own changes, compile it, install it, and so on.

One of the advantages of releasing your source code to the world is that other programmers can help add features and fix bugs.

Both GitHub and Bitbucket have nice web interfaces to help with that.

Suppose one of your fans has code for a new feature she’d like you to include in your plugin. She’d fork (make a copy of) your repository and make the proposed changes in a named branch in her ...

Get Learn to Program with Minecraft Plugins, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.