7
2
I love my GitBash window because it helps maintain the illusion that I am not on Windows 7. I can type ls /c/
and see C:/
. This has worked fine for me. Now I would like to create a git backup on an external drive that is not underneath C:. I plug in the drive, Windows assigned it "G:" but now, how do I tell Mingw32 to know about it?
I'd like to use $ git remote add backup /tmp/backup
from this excellent answer but change /tmp
to G:
$ git remote add backup /G/myrepo ...
$ git push backup
fatal: 'C:/prog/Git/G/myrepo' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
I'm not sure what information is useful.
$ git --version
git version 1.7.0.2.msysgit.0
$ ls G:
ls: G:: No such file or directory
2Why are you fighting your OS? – SLaks – 2011-10-03T15:34:46.743
you are aware that by adding the git bin dir to the PATH you can just use cmd and type stuff like
git remote add g:/myrepo
? – stijn – 2011-10-03T15:39:23.357I'm not sure what you are saying. git's bin is in my PATH but I couldn't get "ls G:/" to work. Thanks. – user333947 – 2011-10-03T15:49:13.023
in the windows command line it's not ls but
dir g:
– stijn – 2011-10-04T06:42:43.790