class_docstr: PyGit class represents a git repo within a weigit repo.
  
  Args:
      parent_path (pathlib.Path)
          Has to be the full path of the parent!
      gitignore (List)
          a list of files to be added to the .gitignore
      name (str)
          Name of the author of the git repo. Optionally used if it can't be determined from user's .gitconfig.
      email (str)
          email address of the author of the git repo
docstr: git add all the untracked files not in gitignore, to the .wgit/.git repo.
docstr_tok: ["git","add","all","the","untracked","files","not","in","gitignore",",","to","the",".wgit\/.git","repo","."]
code: def add(self) -> None:
      """
      git add all the untracked files not in gitignore, to the .wgit/.git repo.
      """
      # If .wgit is git repo, add all the files in .wgit not being ignored to git
      # TODO: Add functionalities for add specific files and add all files.
      if self._exists:
          self.repo.index.add_all()
          self.repo.index.write()
      else:
          sys.stderr.write("fatal: git repo does not exist")
  
file_path: fairscale/fairscale/experimental/wgit/pygit.py
imports: from pathlib import Path
  import subprocess
  import sys
  from typing import Dict, List, Tuple
  import pygit2
label_desc: Use image node_id 3 for calling the PyGit obj's underlying member method code with example usage: obj.add() without return types