git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: PJ Weisberg <pj@irregularexpressions.net>
To: Peng Yu <pengyu.ut@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: How to change the index for git status?
Date: Sat, 4 Feb 2012 13:24:29 -0800	[thread overview]
Message-ID: <CAJsNXTkM4P7DUGofBT9f3KZQNe38v18eu2WM4UXsSmAsN813VQ@mail.gmail.com> (raw)
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.

      reply	other threads:[~2012-02-04 21:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04 20:06 How to change the index for git status? Peng Yu
2012-02-04 20:08 ` Peng Yu
2012-02-04 21:24   ` PJ Weisberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJsNXTkM4P7DUGofBT9f3KZQNe38v18eu2WM4UXsSmAsN813VQ@mail.gmail.com \
    --to=pj@irregularexpressions.net \
    --cc=git@vger.kernel.org \
    --cc=pengyu.ut@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).