How to setup a private git server on VPS

  1. run useradd git and passwd git to add a user account to remote server
  2. git init --bare project-name.git as git user
  3. on the local mechine, run git init && git remote add origin git@example.com:project-name.git

Wed Jan 21 21:30:00 2015

Reference

  1. digitaloceanmore_info
  2. ams at toroid