Host your own Git repositories without GitHub or GitLab.
Install Git
apt install git -yCreate a Bare Repository
mkdir -p /opt/git/myproject.git\ncd /opt/git/myproject.git\ngit init --bareClone Remotely
From your local machine:
git clone ssh://root@YOUR_IP/opt/git/myproject.gitPush an Existing Project
cd existing-project\ngit remote add origin ssh://root@YOUR_IP/opt/git/myproject.git\ngit push -u origin mainGit Hooks
Use hooks for auto-deployment:
cat > /opt/git/myproject.git/hooks/post-receive