-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
Description
There is an option to compare two branches (local or remote):
git-branch-status [ base-branch-name compare-branch-name ]
And there is also an option to compare each local branch with its upstream:
$ git-branch-status --all
| master | (even) | (ahead 1) | origin/master |
| tracked-branch | (even) | (even) | origin/tracked-branch |
| (no local) | n/a | n/a | origin/untracked-branch |
| local-branch | n/a | n/a | (no upstream) |
| master | (behind 1) | (ahead 1) | a-remote/master |
| (no local) | n/a | n/a | a-remote/untracked-branch |
My problem: I have to manage a lot of branches locally and remotely before they're merged to master
(often 20-30). What I would really love, is to run one command and see how does each of my local branches compare to my local master
(and if they don't differ, I'd like to remove them but I'll do that on my own), and also see which my local branches' remote upstreams differ from remote master
.
Is this possible?
SystemParadox