For example you want to be able to clone, pull and push to the repository which will be on the same machine.
First create a bare repo:
git clone --bare https://github.com/dmitritelinov/diveintoansible.gitgit clone ./diveintoansible.gitgit remote -vecho 1> 1.txt
git add 1.tx
git commit -m "added 1.txt"
git push