git reset to remote branch only if remote branch exists