From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bakshi" Subject: Re: git with detached worktrees , push has no effect Date: Fri, 15 Jul 2011 10:55:40 +0530 Message-ID: <20110715105540.314304d1@shiva.selfip.org> References: <20110714181019.2453e3a8@shiva.selfip.org> <1310647767.6041.73.camel@centaur.lab.cmartin.tk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org To: Carlos =?UTF-8?B?TWFydMOtbg==?= Nieto X-From: git-owner@vger.kernel.org Fri Jul 15 07:25:44 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhauF-0005um-OK for gcvg-git-2@lo.gmane.org; Fri, 15 Jul 2011 07:25:44 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754702Ab1GOFZk convert rfc822-to-quoted-printable (ORCPT ); Fri, 15 Jul 2011 01:25:40 -0400 Received: from static.206.87.46.78.clients.your-server.de ([78.46.87.206]:40330 "EHLO Kolkata.infoservices.in" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754629Ab1GOFZj convert rfc822-to-8bit (ORCPT ); Fri, 15 Jul 2011 01:25:39 -0400 Received: from shiva.selfip.org (unknown [122.176.30.116]) by Kolkata.infoservices.in (Postfix) with ESMTPSA id 807B43804001; Fri, 15 Jul 2011 07:25:35 +0200 (CEST) In-Reply-To: <1310647767.6041.73.camel@centaur.lab.cmartin.tk> X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, 14 Jul 2011 14:49:27 +0200 Carlos Mart=C3=ADn Nieto wrote: > On Thu, 2011-07-14 at 18:10 +0530, J. Bakshi wrote: > [...] snip snip snip > > warning: You appear to have cloned an empty repository. > >=20 > > touch A > > git add A > >=20 > > git commit -m "add A" > >=20 > > [master (root-commit) 7662edd] add A > > 0 files changed, 0 insertions(+), 0 deletions(-) > > create mode 100644 A > >=20 > > git push > > Username: > > Password: > > Everything up-to-date > >=20 > >=20 > > Why reports [Everything up-to-date] rather than modify the remote = git ? >=20 > That's because your remote repository has no branches and per default > git-push will only push matching branches; as no branches match, ther= e > is nothing to do. This is what "warning: You appear to have cloned an > empty repository." is trying to tell you (the message could certainly= be > made much more friendly). Your master branch in this case doesn't exi= st > in the server, so you have to tell git to push it explicitly. >=20 > git push origin master >=20 > will do the trick. >=20 GRAET !! Working like a charm and the hook is also working fine. Can we make the= =20 empty master branch at the server, so that client can continue with pla= in "git push" ? Thanks