Difference with Git in Windows vs Linux

I am having an issue wtih git that is driving me a bit nuts and wondering if anyone has any thoughts. I set up a bare git repository on my Google Drive. I pushed a repository that I created on my Linux machine to it . I can clone it back to another folder on my Linux machine but for some reason I can not clone it to a folder on Windows? The Google Drive folder is set up as a local drive on both machines and seems to work fine. I can copy and read files from it. locally. I am using Git Bash on Windows. The command I am using to try and clone the repository on the Windows machine in Git Bash is: git clone ~/Google\ Drive/git/ProjectFolder.git/ / I get an error message stating that this does not appear to be a valid repository and to makes sure that I have the correct access rights. I get the same results using the git GUI in Windows. This is the same folder I have no problem cloning on Linux Also if I go into ProjectFolder.git in Git Bash and do a "git fetch" command I get the message that it is not a git repository. If I look at the ProjectFolder.git it looks like a git repository to me, ie. the file structure is correct. I also tried to copy the folder to somewhere else , ie. not on Google Drive and it gives the same result. Again that same repository clones perfectly on Linux so what gives, any thoughts? Thanks, Jim

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks like an invalid character (a space) in a Windows file name. But I've only used git on Windows with some graphical tool, and haven't actually run into this problem myself. - --Bob. On 2017-06-17 03:03 AM, Jim Ruxton via talk wrote:
I am having an issue wtih git that is driving me a bit nuts and wondering if anyone has any thoughts. I set up a bare git repository on my Google Drive. I pushed a repository that I created on my Linux machine to it . I can clone it back to another folder on my Linux machine but for some reason I can not clone it to a folder on Windows? The Google Drive folder is set up as a local drive on both machines and seems to work fine. I can copy and read files from it. locally. I am using Git Bash on Windows. The command I am using to try and clone the repository on the Windows machine in Git Bash is:
git clone ~/Google\ Drive/git/ProjectFolder.git/ /
I get an error message stating that this does not appear to be a valid repository and to makes sure that I have the correct access rights. I get the same results using the git GUI in Windows.
This is the same folder I have no problem cloning on Linux
Also if I go into ProjectFolder.git in Git Bash and do a "git fetch" command I get the message that it is not a git repository. If I look at the ProjectFolder.git it looks like a git repository to me, ie. the file structure is correct. I also tried to copy the folder to somewhere else , ie. not on Google Drive and it gives the same result. Again that same repository clones perfectly on Linux so what gives, any thoughts?
Thanks,
Jim
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
- -- Bob Jonkman <bjonkman@sobac.com> Phone: +1-519-635-9413 SOBAC Microcomputer Services http://sobac.com/sobac/ Software --- Office & Business Automation --- Consulting GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Ensure confidentiality, authenticity, non-repudiability iEYEARECAAYFAllE1gkACgkQuRKJsNLM5eofqwCfQYTRdSzt6JhLfFJi0Dm/dSGe iQMAni/rrRJBrWsctI3F+lRpsZ0IRlmT =xY65 -----END PGP SIGNATURE-----

From: talk [mailto:talk-bounces@gtalug.org] On Behalf Of Bob Jonkman via talk Sent: Saturday, June 17, 2017 3:11 AM To: Jim Ruxton; GTALUG Talk Subject: Re: [GTALUG] Difference with Git in Windows vs Linux
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Looks like an invalid character (a space) in a Windows file name.
But I've only used git on Windows with some graphical tool, and haven't actually run into this problem myself.
- --Bob.
On 2017-06-17 03:03 AM, Jim Ruxton via talk wrote:
I am having an issue wtih git that is driving me a bit nuts and wondering if anyone has any thoughts. I set up a bare git repository on my Google Drive. I pushed a repository that I created on my Linux machine to it . I can clone it back to another folder on my Linux machine but for some reason I can not clone it to a folder on Windows? The Google Drive folder is set up as a local drive on both machines and seems to work fine. I can copy and read files from it. locally. I am using Git Bash on Windows. The command I am using to try and clone the repository on the Windows machine in Git Bash is:
git clone ~/Google\ Drive/git/ProjectFolder.git/ /
Names with spaces need to be quoted, as in: git clone "~/Google Drive/git/ProjectFolder.git/" / And some folder commands have a hard time with a slash at the end. You might also try: git clone ~/Google\ Drive/git/ProjectFolder.git / or git clone "~/Google Drive/git/ProjectFolder.git" / I don't use git in Windows, but I live in Windows scripts... Good luck. -- Jose Dias jose "dot" dias "at" DiasLan "dot" net -- snip --
Thanks,
Jim
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
- -- Bob Jonkman <bjonkman@sobac.com> Phone: +1-519-635-9413 SOBAC Microcomputer Services http://sobac.com/sobac/ Software --- Office & Business Automation --- Consulting GnuPG Fngrprnt:04F7 742B 8F54 C40A E115 26C2 B912 89B0 D2CC E5EA
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Ensure confidentiality, authenticity, non-repudiability
iEYEARECAAYFAllE1gkACgkQuRKJsNLM5eofqwCfQYTRdSzt6JhLfFJi0Dm/dSGe iQMAni/rrRJBrWsctI3F+lRpsZ0IRlmT =xY65 -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Or use "%20" in place of the space.
... Looks like an invalid character (a space) in a Windows file name. I use this in a script to download Cyberfox portable from sourceforge. I also do shell scripting for GNU/Linux, MS Windows, and OpenBSD, as well as Perl stuff for ExifTool, for managing my family photo and video collection, for different cameras over the years.
- -- Daniel Villarreal http://www.youcanlinux.org youcanlinux at gmail.com PGP key 2F6E 0DC3 85E2 5EC0 DA03 3F5B F251 8938 A83E 7B49 https://pgp.mit.edu/pks/lookup?op=get&search=0xF2518938A83E7B49 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEzBAEBCAAdBQJZRUnoFhx5b3VjYW5saW51eEBnbWFpbC5jb20ACgkQ8lGJOKg+ e0mizggAoPa2nPz7pdR6TtG//WfPcNo6bSTJUAj/lzFHzN3Xmjlme7nB0NMNugOp 2NHVFAzZLURaovi+OAKDegiFwBj/cTuuNLqGKWD89PvHeZp8lRn8B/YWJ/rYTTk0 T/NNB6jy3T/RsXnEPaO3P2VTgZZn/Z4bqvhXrnW1cP4BiPxidaU1xK1v0AX1/xVA GQ8XaAjst2N1ZBQPdzKKMAaePNxBBrXw3yBCXUYb0hqSJsYa00E8deRy0vDVGZIk XLMn0RzjhpmKaFhO5B3RHkc3EX3fONBrnuaXdzkzkr4puju7JuvsRWL2TydOGWWo zUL2gP78x1vdfafDVnPerDU6BVLqPQ== =QeE3 -----END PGP SIGNATURE-----

On 2017-06-17 03:03 AM, Jim Ruxton via talk wrote:
I am having an issue wtih git that is driving me a bit nuts and wondering if anyone has any thoughts. I set up a bare git repository on my Google Drive. I pushed a repository that I created on my Linux machine to it . I can clone it back to another folder on my Linux machine but for some reason I can not clone it to a folder on Windows? The Google Drive folder is set up as a local drive on both machines and seems to work fine. I can copy and read files from it. locally. I am using Git Bash on Windows. The command I am using to try and clone the repository on the Windows machine in Git Bash is:
git clone ~/Google\ Drive/git/ProjectFolder.git/ /
Names with spaces need to be quoted, as in:
git clone "~/Google Drive/git/ProjectFolder.git/" /
And some folder commands have a hard time with a slash at the end. You might also try:
git clone ~/Google\ Drive/git/ProjectFolder.git /
or
git clone "~/Google Drive/git/ProjectFolder.git" /
Thanks for the suggestion but I tried moving the ProjectFolder.git folder to my Documents folder and tried cloning from there with the same result so I am quite sure it is not an issue with spaces in the file name. I just tried creating the bare repository from the windows machine and pushing it to Google Drive from the windows machine. I then had no problem cloning to anywhere on my Windows machine. However now the Linux machine doesn't recognize the ProjectFolder.git as valid?? It is as if my Windows git and Linux git speak different languages. Very puzzling? Both machines have no problem cloning from github however. Jim
participants (4)
-
Bob Jonkman
-
Daniel Villarreal
-
Jim Ruxton
-
Jose A. Dias