- Install Git
- Setup git user
- Using git user login to server with ssh,
ssh git@yourserver.com
- Create git repo on the server
- Push local code to server
- Bonus points: Make SSH more secure
Edit the SSH config:
And change the following values:
Where 2207 is a port of your choosing. Make sure to add this so your Git remote: