Clone a Git Repository on Your Server

You may want to run code directly pulled from a Git repository on your server. Our servers provide configuration options for doing this.

Updated Jul 7, 2026

If your bot is a Java .jar, you do not need to clone a Git repository. Just upload the .jar file to your server.

To clone a Git repository onto your server, configure the repository in the Startup tab.

The first thing you must set is the repository address:

This is the URL of your repository, for example https://github.com/yourname/reponame.

Next, you must set the install branch. For most people, this is probably master. This is the production branch of your repository that should be pulled.

If your repository is private, you must fill in the following variables.

You must enter your username on the Git host in the Git username variable:

Then you must enter your personal access token. Depending on the site you use to host your repository, you can find it at the following links:

If you use a different service to host your repository, you must create a personal access token there.

Finally...

To make your server pull from the repository every time it restarts, you must trigger the initial clone. First, make sure there are no files on your server. Then, on the Settings page of your server, click Reinstall Server.

Your repository should then be cloned.

Possible Problem

Issue Reason
The repository doesn't clone. Please make sure that you followed the guide step by step without missing anything. Do not enable/disable anything else unless you are sure of their functionality.

If you are having trouble cloning a Git repository, you can always download the files to your PC and then upload them to the server. If you are uploading files directly from the control panel, see Set Up a Server.