From: Konstantin Khomoutov <kostix+git@007spb.ru>
To: pbGit <pblakeley@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Problems pushing???
Date: Sun, 8 Jul 2012 15:02:45 +0400 [thread overview]
Message-ID: <20120708110244.GA14518@localhost.localdomain> (raw)
In-Reply-To: <1341738766823-7562695.post@n2.nabble.com>
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
next prev parent reply other threads:[~2012-07-08 11:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 9:12 Problems pushing??? pbGit
2012-07-08 11:02 ` Konstantin Khomoutov [this message]
2012-07-08 11:52 ` Holger Hellmuth
2012-07-08 12:21 ` Konstantin Khomoutov
2012-07-08 14:51 ` pbGit
2012-07-08 15:43 ` pbGit
2012-07-08 21:20 ` Holger Hellmuth
2012-07-10 6:59 ` pbGit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120708110244.GA14518@localhost.localdomain \
--to=kostix+git@007spb.ru \
--cc=git@vger.kernel.org \
--cc=pblakeley@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).