git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Problems pushing???

From
PpbGit <pblakeley@gmail.com>
Date
Jul 8, 2012, 09:12 UTC
Message-ID
<1341738766823-7562695.post@n2.nabble.com>
Hi,
  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
remote: error: By default, updating the current branch in a non-bare
repository
remote: error: is denied, because it will make the index and work tree
inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to
match
remote: error: the work tree to HEAD.
remote: error: 
remote: error: You can set 'receive.denyCurrentBranch' configuration
variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing
into
remote: error: its current branch; however, this is not recommended unless
you
remote: error: arranged to update its work tree to match what you pushed in
some
remote: error: other way.
  
Hope someone can help with this because I have spent a bit of time trying to
solve this and still stuck!!!
Thanks for your time,
 Paul

-- View this message in context: http://git.661346.n2.nabble.com/Problems-pushing-tp7562695.html Sent from the git mailing list archive at Nabble.com.

Next: Konstantin Khomoutov
Message 1 of 8 in “Problems pushing???”
  1. pbGitJul 8, 2012
  2. Konstantin KhomoutovJul 8, 2012
  3. Holger HellmuthJul 8, 2012
  4. Konstantin KhomoutovJul 8, 2012
  5. pbGitJul 8, 2012
  6. pbGitJul 8, 2012
  7. Holger HellmuthJul 8, 2012
  8. pbGitJul 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.