I am using GitPython,
I am trying to somehow see if all my local commits where push to the remote server. I can see differences between my current local state and master doing this :
import git
t = repo.heads['master'].commit.tree
repo.git.diff(t)
but I can't figure out how to check if commits where pushed or not