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 848993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:01:53+00:00 2026-05-15T07:01:53+00:00

I am just starting out with git on the Windows platform. I have mysygit

  • 0

I am just starting out with git on the Windows platform. I have mysygit installed and bar a few hiccups I am ‘git’ing away nicely.

However, I must be missing something because I don’t understand how two msysgit clients on different Windows machines can push and pull to each other directly?

I am a complete linux noob but I think I can see that the ssh thing allows distribution on linux. However, the msysgit client appears just to be additional commands in the windows cmd prompt and there is no windows service element.

If I try git clone 'MyMatesPc' who is going to be listening to this request at the other end?

I can see that if you have a ‘central’ server running git on linux (or cygwin), you can share commits by pushing them onto the ‘central’ repo from one machine, then pulling them down onto another.

This effectively means that you are having to use a central server.

I don’t have a problem with this, but wanted to check that I am not missing anything!

  • 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-15T07:01:53+00:00Added an answer on May 15, 2026 at 7:01 am

    You can use the local protocol: a simple shared path is enough for two Git repositories on two PC on the same LAN to push/pull from each other.
    No need (in this case) for a “central” server.


    As Noel Kennedy points out in the comments, he had to locally map a drive letter to the remote repo before executing: git clone file:///z.
    That is the safest path, since UNC paths are not always supported with some versions of msysgit.

    You can use UNC paths with recent msysgit versions though, like in a Git bash session:

    $ cd /c/temp
    $ git clone //remote-host/share/path/to/repo.git
    

    (note the ‘/‘ instead of the Windows ‘\‘)

    In a DOS session, after adding the mingw/bin path, it might work too (i.e. using an UNC path instead of a mapped drive)

    C:\temp>set PATH=%PATH%;c:\msysgit\bin;c:\msysgit\mingw\bin
    C:\temp>git clone \\\\remote-host\\share\\path\\to\\repo.git
    

    Update August 2014 (4 years later), Git 2.1

    Commit c2369bd by Eric Sunshine and Cezary Zawadka (czawadka) means a simpler UNC path now work:

    Windows: allow using UNC path for git repository

    Eric Sunshine fixed mingw_offset_1st_component() to return consistently “foo” for UNC “//machine/share/foo“, cf this thread.

    So this should now work:

    git clone //mymachine/shared/repo.git
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

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.