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

Re: Urgent: Issue with GIT ...

From
jaseem abid <jaseemabid@gmail.com>
Date
Jun 25, 2012, 13:05 UTC
Message-ID
<CAH-tXsBMtGJyWiWop1n26OWKei-yfojz9X20ZrnPYgru=F0TVg@mail.gmail.com>
In-Reply-To
<1340628925770-7562100.post@n2.nabble.com>
On Mon, Jun 25, 2012 at 6:25 PM, guruprasad <guruprasadkinI@gmail.com> wrote:
Show 53 quoted lines
> Firstly, I apologize for staring subject with "Urgent" and thank you very
> much for your time and response.
>
> As i told in my post earlier i am very much new to GIT, I was bit confused
> with the tests i went on. I am sorry for not describing it clearly in my
> last post.
>
> 1) Pull command is working fine with both the Linux box. Comp A can pull
> updates from comp B, vise versa.
>
> 2) Push command is not working with both Linux box, command given below.
>       git push A master/git push B master
>
> 3) When i tried above command first time got an error saying
> 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.
> remote: error:
> remote: error: To squelch this message and still keep the default behaviour,
> set
> remote: error: 'receive.denyCurrentBranch' configuration variable to
> 'refuse'.
> To user@A:/home/user/workspace/TestProject/.git
>  ! [remote rejected] master -> master (branch is currently checked out)
> error: failed to push some refs to
> 'user@A:/home/user/workspace/TestProject/.git'
>
> so i added receive.denyCurrentBranch = ignore into git config and tried
> again. I dint get any error.
>
> 4) But, modified things in files did not get reflected. i tried to push from
> A-->B and B-->A. both dint work.
> 5) Push command i tried after modifying file, staging and committing.
>
> Please let me know if more information is required.
>
> Yes, I posted the same question to the git-users ML. Sorry for not
> mentioning it in my post.

If you really need a quick answer, hit the #git IRC channel on freenode. Its a zillion times faster than the mailing list.

-- 
Jaseem Abid
http://jaseemabid.github.com
Previous: guruprasadNext: Angus Hammond
Message 4 of 10 in “Urgent: Issue with GIT ...”
  1. guruprasadJun 25, 2012
  2. Konstantin KhomoutovJun 25, 2012
  3. guruprasadJun 25, 2012
  4. jaseem abidJun 25, 2012
  5. Angus HammondJun 25, 2012
  6. Konstantin KhomoutovJun 25, 2012
  7. Andy HawkinsJun 25, 2012
  8. KevinJun 26, 2012
  9. Andy HawkinsJun 26, 2012
  10. KevinJun 26, 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.