docstr: Initialize and configure a local repo.
  
  Avoid to configure git helpers globally on a contributor's machine.
docstr_tok: ["Initialize","and","configure","a","local","repo",".","Avoid","to","configure","git","helpers","globally","on","a","contributor","'s","machine","."]
code: def setUp(self):
      """Initialize and configure a local repo.
  
      Avoid to configure git helpers globally on a contributor's machine.
      """
      run_subprocess("git init", folder=self.cache_dir)
      with (self.cache_dir / ".git" / "config").open("w") as f:
          f.write(STORE_AND_CACHE_HELPERS_CONFIG)
  
file_path: huggingface_hub/tests/test_utils_git_credentials.py
imports: import time
  import unittest
  from pathlib import Path
  import pytest
  from huggingface_hub.constants import ENDPOINT
  from huggingface_hub.utils import run_interactive_subprocess, run_subprocess
  from huggingface_hub.utils._git_credential import _parse_credential_output, list_credential_helpers, set_git_credential, unset_git_credential
label_desc: Use image node_id 1 for calling the TestGitCredentials obj's underlying member method code with example usage: obj.setUp() without return types