let's create a new git repository:
$ git init test $ cd test and then add a remote, pointing to ourselves
$ git remote add origin . note the dot, referring to the test directory.
this seems to function as expected. you can make commits, set up branch tracking, and push and pull from yourself. the only strange thing i've run into is that if you commit, then fetch, your unpushed changes are already present if you go to push (it makes sense why this happens, but it's perhaps unexpected).
is this functionality stable / intended? what are the consequences of using a remote like this? will any git command usages error out on a repository like this? are there any real use cases?
I was thinking this might be good for getting git functionality minus the replication (as opposed to pushing to a bare repository on your same computer)
this seems like a strange feature, and i'm surprised i haven't found any discussion on it anywhere.