code: def commit(self):
          
          self.git.add('-A', '.')
          try:
              self.git.commit('-m', self.commit_msg)
              return True
          except sh.ErrorReturnCode_1:
              return False
docs: git commit and return whether there were changes