I think this should be equipped in git bundle such as 'git status -c' to compare with remote repo whether it is ahead or behind.