How to create a bare git repo with init and update example

Create a bare Git repo using git init and update refs and server info. Quick commands and practical tips for server side repositories and sharing.