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

Re: Urgent: Issue with GIT ...

From
Andy Hawkins <andy@gently.org.uk>
Date
Jun 25, 2012, 13:02 UTC
Message-ID
<slrnjugobd.8ie.andy@atom.gently.org.uk>
In-Reply-To
<1340624980925-7562097.post@n2.nabble.com>
Hi,
In article <1340624980925-7562097.post@n2.nabble.com>,
           guruprasad<guruprasadkinI@gmail.com> wrote:
> 5) If i do some changes to files in B, commit and push to remote branch, I
> am unable to pull the changes done and merge into A. I have set
> "receive.denycurrentbranch=ignore" in git config.
Sounds like you're trying to push into a remote non-bare repository.
What I'd do is:
1. On 'A', create a bare repository.
2. Somewhere else on 'A', clone this repository. Work and push to the bare
in step 1 when necessary.
3. On 'B', also clone the repository from 1. Work and push to the bare when
necessary.

I don't think it's a good idea to push to a repository that has checked out files. I seem to remember this being mentioned in Pro Git.

Andy
Previous: Konstantin KhomoutovNext: Kevin
Message 7 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.