Restore old directory from a previous branch, commit, etc.

Context

Steps

  1. Locate the old branch, or commit message which you want to revive.
  2. Make note of the path
  3. Make not of the commit hash
  4. git checkout 348ce0aa02d3738e55ac9085080028b548e3d8d3 -- path/to/the/folder/