Skip to content

Instantly share code, notes, and snippets.

@ward
Created February 6, 2014 11:06
Show Gist options
  • Select an option

  • Save ward/8842210 to your computer and use it in GitHub Desktop.

Select an option

Save ward/8842210 to your computer and use it in GitHub Desktop.
Compare folder structure

tree gives a nice graphical view of folder structure. Notice that this method doesn't let you know about file differences between files of the same name.

tree /path/to/dir1 >file1.txt
tree /path/to/dir2 >file2.txt
git diff file1.txt file2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment