October 2016
Beginner
861 pages
20h 37m
English
It can sometimes be useful to show or find information on certain trees and files in Git. Here, the ls-tree and diff-tree commands come in handy. Essentially, these are plumbing commands, and they can sometimes be very useful when scripting or browsing.
We'll use the same repository as the previous example:
$ git clone https://github.com/dvaske/data-model.git
We also need a bare repository for some examples; it will by default, with the --bare option, be cloned to data-model.git, so remember which repository you are currently working on:
$ git clone --bare https://github.com/dvaske/data-model.git $ cd data-model
To show the content of the current tree in the Git context, we can use the ...