Creating a remote server on a LAN instead of using Git Hub

Can I create my own remote server instead of using Git Hub?

i.e Can I make a remote server on LAN where 3 computers are sharing a drive on a network to do the collaborative work using Gitbash? 

  • Sharing a file across multiple github repos
  • Tips for collaboratively editing a LaTeX document
  • Github: readonly access to a private repo
  • Merging another person's contributions with minor changes
  • collaborating on an existing open source project - how do I use git / github?
  • How to manage backups and monitor Git with a central repository?
  • Share pre-initialized GIT repository
  • New Git branch without changes from a previous commit
  • html export different branch
  • build spring framework source code encounter an error
  • How do I setup a private git repository in Ubuntu?
  • How to undo the changes I made in a git branch?
  • 3 Solutions collect form web for “Creating a remote server on a LAN instead of using Git Hub”

    There are several ways to do this

    1. Host internal repositories like Gitlab or Stash. This will be similar to services like BitBucket or GitHub
    2. If you want to have a simple service with SSH authentication – user3159253 has already answered that
    3. A very bare bones way is
      1. Create a bare repository – example git init . --bare
      2. Start the git daemon – example git daemon --base-path=<absolute full path to git repo
      3. Add that repo as git remote add RepoName git:// or clone git clone git://

    Yes, you do. Actually you need a SSH-service and git would perfectly work over SSH. Since you’re on Windows, see Setup a Git server with msysgit on Windows

    You can set up a remote repository and make it accessible through any of the protocols it supports. The AAA would be handled by the transport.

    Git Baby is a git and github fan, let's start git clone.