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

Re: Git branching & pulling

From
Wink Saville <wink@saville.com>
Date
May 23, 2007, 00:22 UTC
Message-ID
<d4cf37a60705221722t2167a0e8x810689218b87fb39@mail.gmail.com>
In-Reply-To
<200705202230.24362.Josef.Weidendorfer@gmx.de>
Show 12 quoted lines
>
> Because git does not know what to merge; there is no config entry
> for "branch.test.merge", as the warning says. How would you reword
> this warning to make it easier to understand?
> But from your question, I assume that you expected git to have a
> "branch.test.merge" setting.
> What do you expect it to do? And why?
>
> Is my assumption correct that you want the last command to be equivalent
> to "git-pull . master"? And my further assumption, that you want this
> because you expect "git pull" to default to merging changes from its
> upstream (also when the upstream is local)?

Yes, as you said below that was the old behavior and besides when the branch was created git was told what the upstream was it seems reasonable that it remember that. When I clone a remote it does the right thing it would seem when I make a branch it would behave the same.

>
> Creation of a branch from another local one never has created
> "branch.x.remote" or "branch.x.merge" entries. I am not even sure
> that setting "branch.x.remote" to "." is working in the current version.

I tired to create the appropriate entries and it didn't work, but maybe operator error.

> BTW: There was some old behavior of "git pull" to always pull the master
> branch from remote "origin" without any further parameters. I suppose that
> you did not want this to happen in your example above ?!
>
I expected it to pull from its upstream (i.e. the branches parent).
Wink
Previous: Josef WeidendorferNext: Junio C Hamano
Message 9 of 12 in “Git branching & pulling”
  1. Wink SavilleMay 19, 2007
  2. J. Bruce FieldsMay 19, 2007
  3. Junio C HamanoMay 19, 2007
  4. Junio C HamanoMay 19, 2007
  5. Steven GrimmMay 19, 2007
  6. Junio C HamanoMay 19, 2007
  7. Wink SavilleMay 19, 2007
  8. Josef WeidendorferMay 20, 2007
  9. Wink SavilleMay 23, 2007
  10. Junio C HamanoMay 23, 2007
  11. Document branch.autosetupmerge.Paolo Bonzini, May 23, 2007
  12. Josef WeidendorferMay 23, 2007

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.