git-ls-tree(1)


NAME

   git-ls-tree - List the contents of a tree object

SYNOPSIS

   git ls-tree [-d] [-r] [-t] [-l] [-z]
               [--name-only] [--name-status] [--full-name] [--full-tree] [--abbrev[=<n>]]
               <tree-ish> [<path>...]

DESCRIPTION

   Lists the contents of a given tree object, like what "/bin/ls -a" does
   in the current working directory. Note that:

   *   the behaviour is slightly different from that of "/bin/ls" in that
       the <path> denotes just a list of patterns to match, e.g. so
       specifying directory name (without -r) will behave differently, and
       order of the arguments does not matter.

   *   the behaviour is similar to that of "/bin/ls" in that the <path> is
       taken as relative to the current working directory. E.g. when you
       are in a directory sub that has a directory dir, you can run git
       ls-tree -r HEAD dir to list the contents of the tree (that is
       sub/dir in HEAD). You don't want to give a tree that is not at the
       root level (e.g.  git ls-tree -r HEAD:sub dir) in this case, as
       that would result in asking for sub/sub/dir in the HEAD commit.
       However, the current working directory can be ignored by passing
       --full-tree option.

OPTIONS

   <tree-ish>
       Id of a tree-ish.

   -d
       Show only the named tree entry itself, not its children.

   -r
       Recurse into sub-trees.

   -t
       Show tree entries even when going to recurse them. Has no effect if
       -r was not passed.  -d implies -t.

   -l, --long
       Show object size of blob (file) entries.

   -z
       \0 line termination on output.

   --name-only, --name-status
       List only filenames (instead of the "long" output), one per line.

   --abbrev[=<n>]
       Instead of showing the full 40-byte hexadecimal object lines, show
       only a partial prefix. Non default number of digits can be
       specified with --abbrev=<n>.

   --full-name
       Instead of showing the path names relative to the current working
       directory, show the full path names.

   --full-tree
       Do not limit the listing to the current working directory. Implies
       --full-name.

   [<path>...]
       When paths are given, show them (note that this isn't really raw
       pathnames, but rather a list of patterns to match). Otherwise
       implicitly uses the root level of the tree as the sole path
       argument.

OUTPUT FORMAT

       <mode> SP <type> SP <object> TAB <file>

   Unless the -z option is used, TAB, LF, and backslash characters in
   pathnames are represented as \t, \n, and \\, respectively. This output
   format is compatible with what --index-info --stdin of git update-index
   expects.

   When the -l option is used, format changes to

       <mode> SP <type> SP <object> SP <object size> TAB <file>

   Object size identified by <object> is given in bytes, and
   right-justified with minimum width of 7 characters. Object size is
   given only for blobs (file) entries; for other entries - character is
   used in place of size.

GIT

   Part of the git(1) suite





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.