Re: [RFC] git subcommand to check if branch is up-to-date with upstream
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 25, 2016, 16:58 UTC
- Message-ID
- <xmqqd1m17iyb.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <57960CFF.5060104@gmail.com>
Sidhant Sharma <tigerkid001@gmail.com> writes:
> I was wondering if it would be a good idea to have a command to check if a > push or pull is required. Perhaps it can also suggest if changes are > fast-forward or the branches (local and remote) have diverged.
Doesn't "branch -v" give that information these days? You'd need to "fetch" first to get the up-to-date worldview before running it, of course.