I want to use my own server (i.e. 127.0.0.1) when I use the push command. How can I set up my own server?
I'm using MacOS X.
You don't need a server to push to a local repository. You can just use a local file url as indicated in the git-push manual:
For local repositories, also supported by git natively, the following syntaxes may be used:
- /path/to/repo.git/
- file:///path/to/repo.git/