- Download the plugin from the GitHub releases page.
- Put the plugin in your server's plugins folder.
- Create a
gitpull.configfile in your server's root folder, see below for an example. Fill it in with your repository's information. - Create an ssh file called
id_ecdsa.- Use
ssh-keygen -t ecdsa -b 521 -m PEM -C "<your-email>"to generate one. - Run
chmod 600 id_ecdsato fix the file permissions.
- Use
- Put the
id_ecdsafile in the.sshfolder in your server's root folder. - Run
cat id_ecdsa.puband copy the output.- Go to your repository's settings page on GitHub.
- Click on "Deploy Keys" in the sidebar.
- Click on "Add Deploy Key".
- Paste the output from the
catcommand into the key field. - Give it a name and click "Add Key".
- Start your server! Check the console for any errors.
/gitpull- Pulls the latest changes from the configured default branch./gitpull [branch]- Pulls the latest changes from the specified branch.
# GitPull Configuration
# world: The name of the world folder
gitpull.world=world
# ssh: The SSH URL of the repository
gitpull.ssh=git@github.com:<Username>/<Repo>.git
# branch: The default branch to pull from
gitpull.branch=main