input: from typing import List
  
  def VersionControl(lines: List[str]) -> None:
      """Implement a basic version control system in Python that keeps track of changes in the code.
      The function should start with a given set of lines of code and allow the user to commit changes.
      Each commit should be logged with an incrementing mark and the content of the lines.
      The function should also allow restoring to a previous commit by setting the lines to the content of the last commit.
      Example:
      lines = ["print('hello world')", "def add(x, y): return x + y"]
      VersionControl(lines)
      commit()
      lines.append("new_line = True")
      commit()
      restore()
      """
output:     commits = []
      commit_id = 0
  
      def commit():
          nonlocal commit_id
          commits.append((commit_id, lines[:]))
          commit_id += 1
          print(f"Commit {commit_id - 1} saved.")
  
      def restore():
          nonlocal lines
          if commits:
              last_commit_id, last_commit_lines = commits[-1]
              lines[:] = last_commit_lines
              print(f"Restored to commit {last_commit_id}.")
          else:
              print("No commits to restore from.")