Installing Git¶
Overview¶
Git is an open-source version control system, and helps tremendously with collaborative project development.
The Sponge project, alongside thousands of other open-source projects, hosts its Git repositories on GitHub. Thus, Git is a crucial tool in the development of Sponge and the Sponge API.
Download¶
Windows¶
GitHub for Windows is an easy method of installing Git on Windows, because Git is included as a part of the software.
Rebooting your computer after installing Git is recommended.
Mac¶
There are a couple of ways to install Git on Mac OS X.
The easiest method is to install Xcode Command Line Tools.
Warning
These instructions do not work on Macs running a version older than Mavericks. If you are running a version of OS X older than Mavericks, install the GitHub client instead.
- Launch the Terminal.
- Run xcode-select --install.
- Install it, and grab a cookie while you wait.
- Run git from the Terminal.
Alternatively, you can install GitHub for Mac. Git is available as a part of the GitHub for Mac installation.
Rebooting your computer after installing Git is recommended.
Linux and Unix¶
The simplest method of installing Git on Linux is by using the package manager that came with your Linux distribution.
Note
You may need to prefix these commands with sudo.
- Launch the Terminal.
- Run apt-get install git if you are on a Ubuntu or Debian-based distribution. Run yum install git if you are on Fedora.
There is not a GitHub client available for Linux, unlike Windows and Mac.
Rebooting your computer after installing Git is recommended.
Track Continuation¶
If you are following a track in Preparing for Development, your next step is:
- Sponge (coremod): Installing an IDE
- Sponge API: Installing an IDE
- SpongeDocs: Installing a Text Editor
- Plugin Development: This article is not included in the Plugin Development track.