code: def add_file_path_in_work_tree(self, path, work_tree, verbose=True):
          
          args = ['--work-tree', work_tree, 'add', '-f']
          if verbose:
              args.append('--verbose')
          args.append(path)
          self.command_exec(args, show_output=verbose)
docs: Add a new file as blob in the storage and add its tree entry into the index.