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

Re: How to change the index for git status?

From
PJ Weisberg <pj@irregularexpressions.net>
Date
Feb 4, 2012, 21:24 UTC
Message-ID
<CAJsNXTkM4P7DUGofBT9f3KZQNe38v18eu2WM4UXsSmAsN813VQ@mail.gmail.com>
In-Reply-To
<CABrM6wngVDotJoe3Yi5cA_n=JWpLa+M35QEeoKqr1tsp5GD3ng@mail.gmail.com>
On Sat, Feb 4, 2012 at 12:08 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
Show 12 quoted lines
> Hi,
>
> When I run git status, it show the status compared against the branch
> upstream/develop. I want it to compare against origin/develop. I
> checked progit. But I don't see how to change the branch to compare
> to. Could anybody let me know how to do so? Thanks!
>
> ~/dvcs_src/craftyjs1/Crafty/build/api$ git status
> # On branch 2D_doc_dev
> # Your branch is ahead of 'upstream/develop' by 2 commits.
> #
> nothing to commit (working directory clean)
git branch --set-upstream 2D_doc_dev origin/develop
-PJ

Gehm's Corrollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced.

Previous: Peng Yu
Message 3 of 3 in “How to change the index for git status?”
  1. Peng YuFeb 4, 2012
  2. Peng YuFeb 4, 2012
  3. PJ WeisbergFeb 4, 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.