I have forked github repository to my github account and cloned to my local machine, whenever I want to execute my tool written in python, I need to make sure that my local copy [it may be on master or any other branch] is exactly same as what is there in the original repository master branch,
in the below example the remote details original repo is mk and my forked repo is origin.
$ git remote -v
mk git@github.com:mediak/meditool.git (fetch)
mk git@github.com:mediak/meditool.git (push)
origin git@github.com:seban/meditool.git (fetch)
origin git@github.com:seban/meditool.git (push)
I want to check the below using python script, if it is exactly matching then ok, otherwise stop executing the script.
git diff mk/master .