# How to change the index for git status?

3 messages from 2012-02-04 to 2012-02-04. Participants: Peng Yu, PJ Weisberg.
Thread: https://gitlist.dev/t/29547

## Peng Yu, 2012-02-04 20:06

Subject: How to change the index for git status?
Message-ID: <CABrM6wm2MochqgC0+FByDA-6nmo0XHtZy1FDXJRkc30+2eyiTw@mail.gmail.com>
URL: https://gitlist.dev/e/CABrM6wm2MochqgC0%2BFByDA-6nmo0XHtZy1FDXJRkc30%2B2eyiTw%40mail.gmail.com

```
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)


-- 
Regards,
Peng

```

## Peng Yu, 2012-02-04 20:08

Subject: How to change the index for git status?
Message-ID: <CABrM6wngVDotJoe3Yi5cA_n=JWpLa+M35QEeoKqr1tsp5GD3ng@mail.gmail.com>
URL: https://gitlist.dev/e/CABrM6wngVDotJoe3Yi5cA_n%3DJWpLa%2BM35QEeoKqr1tsp5GD3ng%40mail.gmail.com
In-Reply-To: <CABrM6wm2MochqgC0+FByDA-6nmo0XHtZy1FDXJRkc30+2eyiTw@mail.gmail.com>

```
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)


--
Regards,
Peng

```

## PJ Weisberg, 2012-02-04 21:24

Subject: Re: How to change the index for git status?
Message-ID: <CAJsNXTkM4P7DUGofBT9f3KZQNe38v18eu2WM4UXsSmAsN813VQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAJsNXTkM4P7DUGofBT9f3KZQNe38v18eu2WM4UXsSmAsN813VQ%40mail.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:
> 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.

```
