Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 612739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:55:33+00:00 2026-05-13T17:55:33+00:00

Is there currently a way to host a shared Git repository in Windows? I

  • 0

Is there currently a way to host a shared Git repository in Windows? I understand that you can configure the Git service in Linux with:

git daemon

Is there a native Windows option, short of sharing folders, to host a Git service?

EDIT:
I am currently using the cygwin install of git to store and work with git repositories in Windows, but I would like to take the next step of hosting a repository with a service that can provide access to others.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:55:33+00:00Added an answer on May 13, 2026 at 5:55 pm

    Here are some steps you can follow to get the git daemon running under Windows:

    (Prerequisites: A default Cygwin installation and a git client that supports git daemon)

    Step 1: Open a bash shell

    Step 2: In the directory /cygdrive/c/cygwin64/usr/local/bin/, create a file named “gitd” with the following content:

    #!/bin/bash
    
    /usr/bin/git daemon --reuseaddr --base-path=/git --export-all --verbose --enable=receive-pack
    

    Step 3: Run the following cygrunsrv command from an elevated prompt (i.e. as admin) to install the script as a service (Note: assumes Cygwin is installed at C:\cygwin64):

    cygrunsrv   --install gitd                          \
                --path c:/cygwin64/bin/bash.exe         \
                --args c:/cygwin64/usr/local/bin/gitd   \
                --desc "Git Daemon"                     \
                --neverexits                            \
                --shutdown
    

    Step 4: Run the following command to start the service:

    cygrunsrv –start gitd

    You are done. If you want to test it, here is a quick and dirty script that shows that you can push over the git protocol to your local machine:

    #!/bin/bash
    
    echo "Creating main git repo ..."
    mkdir -p /git/testapp.git
    cd /git/testapp.git
    git init --bare
    touch git-daemon-export-ok
    echo "Creating local repo ..."
    cd
    mkdir testapp
    cd testapp
    git init
    echo "Creating test file ..."
    touch testfile
    git add -A
    git commit -m 'Test message'
    echo "Pushing master to main repo ..."
    git push git://localhost/testapp.git master
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way in Cocoa that is currently considered best practice for creating
Is there a simple way in .NET to quickly get the current protocol, host,
Is there currently any easy way to set up a YAWS web server in
Is there some way to determine what file currently is being rendered by Rails
Is there any way to use AppleScript (or something else) to query currently running
Is there a way to query the current DATEFORMAT SQLServer 2005 is currently using
Is there a way to detect if a mouse button is currently down in
Is there a way to get the name of the currently executing method in
Is there any way to determine if a text file is currently open in
Is there a way to control where Resharper puts its backing fields? currently it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.