{"thread":{"id":"40315","subject":"git clone in windows after a linux push","startedAt":"2015-09-10T08:25:18Z","lastAt":"2015-09-10T08:25:18Z","messageCount":1,"participants":["Daniele Mammarella"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"269677","messageId":"55F13E6E.6080509@gmail.com","threadId":"40315","inReplyTo":null,"subject":"git clone in windows after a linux push","fromName":"Daniele Mammarella","fromEmail":"mammarella.daniele@gmail.com","sentAt":"2015-09-10T08:25:18Z","receivedAt":"2015-09-10T08:25:18Z","isPatch":false,"sender":{"key":"mammarella.daniele@gmail.com","avatar":null},"body":"Hi to all,\nThis is what i have done for initialize a local git archive, and a\nremote git repository.\n\ndaniele@daniele-nb /var/www/localhost/htdocs $ mkdir provagit && cd provagit\ndaniele@daniele-nb /var/www/localhost/htdocs/provagit $ git init\nInizializzato un repository Git in /var/www/localhost/htdocs/provagit/.git/\ndaniele@daniele-nb /var/www/localhost/htdocs/provagit $ echo 1 > asd.txt\ndaniele@daniele-nb /var/www/localhost/htdocs/provagit $ git add .\ndaniele@daniele-nb /var/www/localhost/htdocs/provagit $ git commit -m \"il mio primo commit\"\n[master (root-commit) 5c2cd93] il mio primo commit\n 1 file changed, 1 insertion(+)\n create mode 100644 asd.txt\ndaniele@daniele-nb /var/www/localhost/htdocs/provagit $ cd ..\ndaniele@daniele-nb /var/www/localhost/htdocs $ cp -r ./provagit /mnt/tinfor/Sviluppo/\ndaniele@daniele-nb /var/www/localhost/htdocs $ cd /mnt/tinfor/Sviluppo/\ndaniele@daniele-nb /mnt/tinfor/Sviluppo $ git clone --bare ./provagit ./provagit.git\nClone nel repository spoglio './provagit.git'...\nfatto.\ndaniele@daniele-nb /mnt/tinfor/Sviluppo $ rm -rf provagit\ndaniele@daniele-nb /mnt/tinfor/Sviluppo $ cd /var/www/localhost/htdocs/\ndaniele@daniele-nb /var/www/localhost/htdocs $ rm -rf provagit\ndaniele@daniele-nb /var/www/localhost/htdocs $ git clone /mnt/tinfor/Sviluppo/provagit.git\nCloning into 'provagit'...\nfatto.\ndaniele@daniele-nb /var/www/localhost/htdocs $\n\n\nThe problem i have noticed is that when i make my first \"push\" after\nthis commands from a linux machine to a remote repository,\nIf i try to clone that project from windows with git clone on git bash\nno problem.\nBut if i try to clone from Git Gui on Windows it have problems because\nit say to me that it can not resolve last commit SHA1.\n\nI've tried to make also that process from windows:\ninizialize a local git archive and a remote archive with git bash or\nwith git gui (so i dont write any commands with the gui), and i have the\nsame problem.\nIf a windows machine clone the project with the Gui from remote archive\nBEFORE any push from the linux machine, its ok, i can push and fetch\nfrom windows with the Gui and linux without any problems.\nIf a windows machine clone the project with the Gui from remote archive\nAFTER the first push from the linux machine, bad requests (can not\nresolve the last commit SHA1).\n\nI thinks its a bug of Git Gui on Windows machine.\nIf it will be important, i use Windows 8 and Linux Gentoo.\nI have on linux:\ndaniele@daniele-nb ~ $ git --version\ngit version 2.4.6\n\nand on windows:\n$ git --version\ngit version 2.5.1.windows.1\n\nHope to have your idea, thanks a lot!\n\n-- \nDaniele Mammarella\n"}]}