git push should fail if remote branch was deleted-how?
<p>Couldn't locate myself, so reaching out for help experts!</p>

<p>I am working on a branch, did my changes and want to commit. meanwhile someone deleted this branch on github. Now if I push, a new branch shows up on github, which we don't like. I want the push to fail if the remote branch (which has been it's tracking remote branch) no more exists. This is because I may be unaware of remote branch deletion and I do not want to check each time I want to push using git branch -avv and git remote prune and other commands.</p>

<p>Please clarify, Thanks.</p>