git archive
Source: https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export
sudo mkdir /git/example.git
cd /git/example.git
sudo git init --bare
cd /home/
sudo git clone
/git/example.git
# (bcoz the repo has root permission in this example)
To use:
git add ... whatever
git commit -a
sudo git push # (bcoz the repo has root permission in this example)