code: def get_last_commit_message(self):
          
          # Check if we are currently in a repo
          try:
              branch = self.active_branch
              return self.commit(branch).message
          except InvalidGitRepositoryError:
              print "Not in a git repo"
              return None
docs: Gets the last commit message on the active branch
  
          Returns None if not in a git repo