Information Technology Reference
In-Depth Information
git days | wc -l;
echo -n The working directory:;
du -h -s --exclude=.git;
echo -n The git directory:;
du -h -s .git;
echo -n Number of files in the working dir:;
git ls-files | wc -l;
}; stat"
Hint You don't have to type the aliases presented in Listing 2-14 . They are all avail-
able in the https://github.com/gajdaw-git-recipes/aliases reposit-
ory.
Note The Listing 2-14 should be typed without newline characters within stat and
days aliases. The file should look like:
days = "!days() { ... }; days"
stat = "!stat() { ... }; stat"
The newline characters were used only for readability purposes.
When you finish entering the contents of Listing 2-14 at the bottom of your .git-
config file, go to the directory git-recipes/02-01/jquery/ :
$ cd git-recipes/02-01/jquery
and execute the first of the aliases:
$ git l
You should see an output similar to:
18cc Fix #13803: domManip remote-script ...
55e3 Fixes #13815: Ensure each element ...
Search WWH ::




Custom Search