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

Re: cant get git to work over http

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 19, 2008, 19:19 UTC
Message-ID
<alpine.LSU.1.00.0802191916020.7797@racer.site>
In-Reply-To
<e26d18e40802191106v51c907bdn6aa51acef5f530a3@mail.gmail.com>
Hi,
On Tue, 19 Feb 2008, Anatoly Yakovenko wrote:
Show 22 quoted lines
> > > If you often merge with the same branch, you may want to
> > > configure the following variables in your configuration
> > > file:
> > >
> > >     branch.master.remote = <nickname>
> > >     branch.master.merge = <remote-ref>
> > >     remote.<nickname>.url = <url>
> > >     remote.<nickname>.fetch = <refspec>
> > >
> > > See git-config(1) for details
> >
> > Did you follow this advice?  You've set up the
> > origin's URL now, and so it knows from where the
> > fetch step will happen, but have you set up the
> > merge step yet?  Does it know what branches to
> > merge on that pull request?
> 
> i dont understand what these values should be. 
> http://www.kernel.org/pub/software/scm/git/docs/howto/setup-git-server-over-http.txt
>  doesn't mention anything about configuring them.  So why cant i have 
> git working the same way over http as it does over ssh and the 
> filesystem?

You can. But please understand that there is a difference from having cloned from somewhere, or setting up an uncloned repository.

You are experiencing that it is not all that easy to set up tracking information when your local branch is the original, and the remote was initialised with your local branch.

So the documentation you quoted does not help. You are supposed to know enough about git details, such as where to find out what the branch.*.remote and branch.*.merge settings mean, before reading setup-git-server-over-http.txt.

Ciao, Dscho

Previous: Anatoly YakovenkoNext: Anatoly Yakovenko
Message 9 of 22 in “cant get git to work over http”
  1. Anatoly YakovenkoFeb 19, 2008
  2. Mike HommeyFeb 19, 2008
  3. Anatoly YakovenkoFeb 19, 2008
  4. Mike HommeyFeb 19, 2008
  5. Johannes SchindelinFeb 19, 2008
  6. Anatoly YakovenkoFeb 19, 2008
  7. Jon LoeligerFeb 19, 2008
  8. Anatoly YakovenkoFeb 19, 2008
  9. Johannes SchindelinFeb 19, 2008
  10. Anatoly YakovenkoFeb 19, 2008
  11. Johannes SchindelinFeb 19, 2008
  12. Anatoly YakovenkoFeb 19, 2008
  13. Johannes SchindelinFeb 19, 2008
  14. Jeff KingFeb 19, 2008
  15. Jon LoeligerFeb 19, 2008
  16. Anatoly YakovenkoFeb 19, 2008
  17. Jon LoeligerFeb 19, 2008
  18. Anatoly YakovenkoFeb 19, 2008
  19. Anatoly YakovenkoFeb 19, 2008
  20. Johannes SchindelinFeb 19, 2008
  21. Anton GladkovFeb 20, 2008
  22. Robert HainesFeb 20, 2008

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.