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

[BUG?] git branch -m doesn't update tracked branch config

From
Dave Borowitz <dborowitz@google.com>
Date
Mar 15, 2012, 15:51 UTC
Message-ID
<CAD0k6qRWR9H8BejcXx3gzy2yQT_MjRBDtbZzhLVM215HQiaVhg@mail.gmail.com>
$ git branch --track branch master
Branch branch set up to track local branch master.
$ git branch -m master newmaster
$ git branch -vv
  branch    e8fadc2 [master] foo
* newmaster e8fadc2 foo

I would have expected branch's upstream to now be newmaster rather than master, or at the very least some warning that branch now has a nonexistent upstream. Is this intended behavior, or a bug?

Next: Junio C Hamano
Message 1 of 2 in “[BUG?] git branch -m doesn't update tracked branch config”
  1. Dave BorowitzMar 15, 2012
  2. Junio C HamanoMar 15, 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.