class_docstr: Commit operations must throw an error on files in the .git/ folder.
  
  Server would error anyway so it's best to prevent early.
code: def test_cannot_update_file_in_git_folder(self):
      for path in self.INVALID_PATHS_IN_REPO:
          with self.subTest(msg=f"Add: '{path}'"):
              with self.assertRaises(ValueError):
                  CommitOperationAdd(
                      path_in_repo=path, path_or_fileobj=b"content"
                  )
          with self.subTest(msg=f"Delete: '{path}'"):
              with self.assertRaises(ValueError):
                  CommitOperationDelete(path_in_repo=path)
  
imports: import unittest
  from huggingface_hub._commit_api import CommitOperationAdd, CommitOperationDelete, _warn_on_overwriting_operations
label_desc: Use image node_id 1 for calling the TestCommitOperationForbiddenPathInRepo obj's underlying member method code with example usage: obj.test_cannot_update_file_in_git_folder() without return types