Create an Ubuntu droplet in Digital Ocean, set it up with SSH keys on creation and include the setup script on creation by copying it on user data or by running the command below after it's been created.
ssh root@<server ip> "bash -s" -- < setup.shThis script will secure the droplet and set a user with admin permissions to use instead of the root user.
Before doing anything else, ssh to the server and update its package manager.
sudo apt-get update
sudo apt-get upgradegit config --global user.name "My Name"
git config --global user.email "my@email.com"