I have a large number of projects setup in Git that were previously managed in CVS. Tortoise CVS as well as Eclipse both made it very easy to see (via icon overlays) if I had made changes to the repository that had not yet been sent to the central server.
Is there a convenient way to achieve this with Git? I don’t really need the icon overlays — I just need to know if I have outstanding changes when comparing my branches to those in origin. I don’t mind using a script of some kind to query all the Git repos.
Something like
git log origin/master..mastershould give you the commits that you have done and not pushed. If you fetch origin and then dogit log master..origin/masteryou can see commits in remote master. You can also dogit log origin/master...masterto see new commits both locally and remote.You can replace
git logwithgit rev-listand easily figure out if and what is not pushed in a script if needed.