Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set up my own local Git server on my own computer?

Tags:

git

macos

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.

like image 888
Voloda2 Avatar asked Mar 27 '11 13:03

Voloda2


1 Answers

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/
like image 190
Mat Avatar answered Oct 02 '22 23:10

Mat