git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git clone in windows after a linux push

From
DMDaniele Mammarella <mammarella.daniele@gmail.com>
Date
Sep 10, 2015, 08:25 UTC
Message-ID
<55F13E6E.6080509@gmail.com>

Hi to all, This is what i have done for initialize a local git archive, and a remote git repository.

daniele@daniele-nb /var/www/localhost/htdocs $ mkdir provagit && cd provagit
daniele@daniele-nb /var/www/localhost/htdocs/provagit $ git init
Inizializzato un repository Git in /var/www/localhost/htdocs/provagit/.git/
daniele@daniele-nb /var/www/localhost/htdocs/provagit $ echo 1 > asd.txt
daniele@daniele-nb /var/www/localhost/htdocs/provagit $ git add .
daniele@daniele-nb /var/www/localhost/htdocs/provagit $ git commit -m "il mio primo commit"
[master (root-commit) 5c2cd93] il mio primo commit
 1 file changed, 1 insertion(+)
 create mode 100644 asd.txt
daniele@daniele-nb /var/www/localhost/htdocs/provagit $ cd ..
daniele@daniele-nb /var/www/localhost/htdocs $ cp -r ./provagit /mnt/tinfor/Sviluppo/
daniele@daniele-nb /var/www/localhost/htdocs $ cd /mnt/tinfor/Sviluppo/
daniele@daniele-nb /mnt/tinfor/Sviluppo $ git clone --bare ./provagit ./provagit.git
Clone nel repository spoglio './provagit.git'...
fatto.
daniele@daniele-nb /mnt/tinfor/Sviluppo $ rm -rf provagit
daniele@daniele-nb /mnt/tinfor/Sviluppo $ cd /var/www/localhost/htdocs/
daniele@daniele-nb /var/www/localhost/htdocs $ rm -rf provagit
daniele@daniele-nb /var/www/localhost/htdocs $ git clone /mnt/tinfor/Sviluppo/provagit.git
Cloning into 'provagit'...
fatto.
daniele@daniele-nb /var/www/localhost/htdocs $

The problem i have noticed is that when i make my first "push" after this commands from a linux machine to a remote repository, If i try to clone that project from windows with git clone on git bash no problem. But if i try to clone from Git Gui on Windows it have problems because it say to me that it can not resolve last commit SHA1.

I've tried to make also that process from windows: inizialize a local git archive and a remote archive with git bash or with git gui (so i dont write any commands with the gui), and i have the same problem. If a windows machine clone the project with the Gui from remote archive BEFORE any push from the linux machine, its ok, i can push and fetch from windows with the Gui and linux without any problems. If a windows machine clone the project with the Gui from remote archive AFTER the first push from the linux machine, bad requests (can not resolve the last commit SHA1).

I thinks its a bug of Git Gui on Windows machine. If it will be important, i use Windows 8 and Linux Gentoo. I have on linux: daniele@daniele-nb ~ $ git --version git version 2.4.6

and on windows: $ git --version git version 2.5.1.windows.1

Hope to have your idea, thanks a lot!
-- 
Daniele Mammarella
Message 1 of 1 in “git clone in windows after a linux push”
  1. Daniele MammarellaSep 10, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.