I don't think your problem is related to Windows global PATH, as remote
is specific to repo.
I recommend you to use Git under Cygwin. Git could work under Windows command line, but there may be some weird problems hard to figure out. Under Cygwin it's more nature and has less error.
All you need is to type bash
in Window CMD then start to use the Unix tools and commands. You can use a shortcut to load bash
, it's as easy as use normal Windows CMD.
The same is true for Rails and Ruby. I used RailsInstaller before, but found using Cygwin to install Rails is more stable.
Finally I'll suggest to install Ubuntu dual boot if you have time(about a month to get familiar). Windows is not very friendly to every Unix tools ultimately. You'll find all pain stopped.