code: def rename(self, new_path, force=False):
          
          flag = "-m"
          if force:
              flag = "-M"
  
          self.repo.git.branch(flag, self, new_path)
          self.path = "%s/%s" % (self._common_path_default, new_path)
          return self
docs: Rename self to a new path
  
          :param new_path:
              Either a simple name or a path, i.e. new_name or features/new_name.
              The prefix refs/heads is implied
  
          :param force:
              If True, the rename will succeed even if a head with the target name
              already exists.
  
          :return: self
          :note: respects the ref log as git commands are used