Cory's Wiki

This is not typically needed, as nowadays we just tend to use GitHub or other management service.

Bare Repository

You can create a “bare” repository to function as a git server. The down-side is that you can't work directly in the bare repo. This allows others to push changes to it without creating issues with a checked-out branch in the server. You can clone it somewhere else and work in that clone.

Create the Repository:

  • mkdir repository.git
  • chmod …
  • cd repository.git
  • git init –shared=everybody –bare

Clone, pull,commit,push as normal:

  • git clone …
  • git pull origin master
  • git commit …
  • git push origin master