1. apt-get install git
2. useradd -d /home/git -m -s /bin/bash git
3. passwd git
4. ssh git@localhost
5. mkdir repo.git
sudo git init --bare repo.git
6. chown -R git.git repo.git
7. mkdir .ssh
8. exit
9. ssh-keygen
10. cp .ssh/id_rsa.pub .
11. ssh git@localhost
12. cat /home/user/id_rsa.pub >> .ssh/authorized_keys
exit
13. git config --global user.name "username"
14. git config --global user.email "email"
15. git clone git@localhost:repo.git
16. git commit
17. git push