2

I would like to know how to create a remote into a windows folder because all the tuts shows me how to make a remote into a remote server and not a folder. http://elegantcode.com/2011/06/18/git-on-windows-creating-a-network-shared-central-repository/

Totty.js
  • 15,563
  • 31
  • 103
  • 175

1 Answers1

1

This example shows an example of a remote on the C drive:

git remote add origin c:/dropbox/repos/theAwesome

Although the following syntax should work too:

git remote add origin /C/dropbox/repos/theAwesome
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • With both commands I get the same error: fatal: "'c:/folder' does not appear to be a git repository; fatal: The remote end hung up unexpectedly; ". Is correct to use "/" instead of "\" in windows? – Totty.js Oct 24 '12 at 08:59
  • @Totty Yes, you can use '`/`' on Windows, since git is using msys (http://stackoverflow.com/questions/3144082/difference-between-msysgit-and-cygwin-git?rq=1). Did you create a git repo in `/c/folder` first? As in "`cd c:\folder`", and "`git init --bare`" – VonC Oct 24 '12 at 09:04
  • @Totty in the case, it could be a case issue. Because the paths are correct, as this example illustrates: http://stackoverflow.com/a/9104446/6309. Another option: try to *clone* your bare repo, and check what `git remote -v show` returns in your cloned repo.. – VonC Oct 24 '12 at 10:31