I setup a git repo in foo
cd mkdir foo cd foo git init
Now I want to reference that remotely
git clone git+ssh://me@somemachine
.git has no special meanings, weather you need to add it depends where the repo is located on server side, with or without .git.
sometimes a repo with .git imply it is a bare repo.