{"thread":{"id":"4932","subject":"initializing remote clone but files already there","startedAt":"2006-07-20T19:41:48Z","lastAt":"2006-07-20T21:32:45Z","messageCount":2,"participants":["Yakov Lerner","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"23961","messageId":"f36b08ee0607201241t6160b1eqb4f0b255b02499a7@mail.gmail.com","threadId":"4932","inReplyTo":null,"subject":"initializing remote clone but files already there","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2006-07-20T19:41:48Z","receivedAt":"2006-07-20T19:41:48Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"There are two machines with slow ssh access. The\nboth have copy of same filetree that was synchronized\npreviously vi rsync. How do I put both trees under git control\nas if they were clone on one other *but* (1) without creating\nbranches and (2) without copying files over (files are already\nthere) ?\n\nThanks\nYakov\n"},{"id":"23962","messageId":"20060720213245.GM13776@pasky.or.cz","threadId":"4932","inReplyTo":"f36b08ee0607201241t6160b1eqb4f0b255b02499a7@mail.gmail.com","subject":"Re: initializing remote clone but files already there","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2006-07-20T21:32:45Z","receivedAt":"2006-07-20T21:32:45Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Thu, Jul 20, 2006 at 09:41:48PM CEST, I got a letter\nwhere Yakov Lerner <iler.ml@gmail.com> said that...\n> There are two machines with slow ssh access. The\n> both have copy of same filetree that was synchronized\n> previously vi rsync. How do I put both trees under git control\n> as if they were clone on one other *but* (1) without creating\n> branches and (2) without copying files over (files are already\n> there) ?\n\nPut one tree under the git control and examine the initial commit in\ndetail (cg-log -v or git show --pretty=fuller or whatever). Now you want\nto perform the initial commit in the other tree with exactly the same\nmetadata; log message should be easy, to carry over all the times and\nstuff, you need to set GIT_AUTHOR_{NAME,EMAIL,DATE} and\nGIT_COMMITTER_<dtto> based on the other initial commit details. That\nshould result in a same commit id. Then you need to just set up remote\nbranch origin just like you would set up any other remote branch.\n\nGood luck,\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nSnow falling on Perl. White noise covering line noise.\nHides all the bugs too. -- J. Putnam\n"}]}