:param branch:
            Checks out specified branch (tracking if it exists on remote).
            If set to ``None``, 'master' will be checked out
        :returns:
            The current branch
            (This could also be 'master (Detatched-Head)' - Be warned)

def branch(self):
        '''
        :param branch:
            Checks out specified branch (tracking if it exists on remote).
            If set to ``None``, 'master' will be checked out
        :returns:
            The current branch
            (This could also be 'master (Detatched-Head)' - Be warned)
        '''

        branch = self._get_branch().get('stdout')
        if branch:
            return ''.join(
                [b for b in branch if '*' in b]
            ).replace('*', '').strip()