threads / discuss / 29547

How to change the index for git status?

Subject: How to change the index for git status?

## tl;dr

3 messages between Feb 4, 2012 and Feb 4, 2012.

replies: 2people: 2as markdown or json

Peng Yu· Feb 4, 2012, 20:06 UTC · lore
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· Feb 4, 2012, 20:08 UTC · re: Peng Yu · lore
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· Feb 4, 2012, 21:24 UTC · re: Peng Yu · lore

Re: How to change the index for git status?

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.

← back to recent threads