On Sun, Jul 08, 2012 at 02:12:46AM -0700, pbGit wrote:

>   I have installed git locally to my machine.  It is running mac os lion. 
> This is intended to be the remote machine too. I have followed, what I think
> is the correct way to do this, using 
> http://www.petermac.com/setup-git-local-and-remote-repositories/ this .  All
> seemed to be ok until I tried to push.  When I try the following command.
> 
> git push --all --repo=<project>
> 
> I get the following output
> 
> Counting objects: 12, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (11/11), done.
> Writing objects: 100% (12/12), 5.23 KiB, done.
> Total 12 (delta 1), reused 0 (delta 0)
> remote: error: refusing to update checked out branch: refs/heads/master
[...]
> Hope someone can help with this because I have spent a bit of time trying to
> solve this and still stuck!!!
Becasue pushing to a so-called "non-bare" repository (this is a "normal"
repository, in which there is a work tree) either has no sense or
requires extra steps to reconcile the results of pushing with the
repository's work tree.  Most probably you should reconsider your
workflow.

Read [1] for an in-depth explanation.
Googling for "receive.denyCurrentBranch" will also provide you with
a number of useful links (such as stackoverflow discussions).

1. http://sitaramc.github.com/concepts/bare.html

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to