From: Elia Pinto Date: Sun, 26 Jun 2011 11:35:56 GMT Subject: Re: git push in a git-init without --bare option? Message-ID: In-Reply-To: <201106261142.28142.psdc1978@gmail.com> Git doesn't keep track on the remote repo if someone change the checkout file. So it was always a bad habit to push to a not bare repo, you could lost commit. From 1.7 git don't permit, by default, to push to a non bare repo. Best regards 2011/6/26, Pedro Sa Costa : > Hi, > > I'm newbie in git and I'm trying to understand how git works. > > - I see that in git, I can't do git-push to a repository that wasn't created > with git-init --bare. Why? > > - But doing git-pull and git-checkout to the same repository is possible. > I'm > really confused. Any help? > > -- > Best regards, > > ----------------------- > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Inviato dal mio dispositivo mobile