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.git
Clone from local in another folder:
git clone ./diveintoansible.git
You will get the local path when invoking:
git remote -v
Make changes, commit and push at the same local repo:
echo 1> 1.txt
git add 1.tx
git commit -m "added 1.txt"
git push
Changes will be pushed at local path