code: def _checkout(self, treeish):
          '''
          Helper function to checkout something
  
          :param treeish:
              String for '`tag`', '`branch`', or remote tracking '-B `banch`'
          '''
  
          return self.m(
              'checking out "%s"' % (treeish),
              cmdd=dict(cmd='git checkout %s' % (treeish), cwd=self.local),
              verbose=False
          f _checkout(self, treeish):
          '''
          Helper function to checkout something
  
          :param treeish:
              String for '`tag`', '`branch`', or remote tracking '-B `banch`'
          '''
  
          return self.m(
              'checking out "%s"' % (treeish),
              cmdd=dict(cmd='git checkout %s' % (treeish), cwd=self.local),
              verbose=False
          )
docs: Helper function to checkout something
  
          :param treeish:
              String for '`tag`', '`branch`', or remote tracking '-B `banch`'