-
Create GitHub repository in github and save the SSH repository url
-
Init git on server in code directory
git init
- Create SSH keys on the server
ssh-keygen -t rsa -b 4096 -C your@email.here
- Rename the key that doesn't end with
.pub
torepo-name.deploy.pem