3 # author: Duane Johnson
4 # email: duane.johnson@gmail.com
8 # Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496
12 # Find base of git directory
13 while [ ! -d .git ] && [ ! `pwd` = "/" ]; do cd ..; done
15 # Show various information about this git directory
17 echo "== Remote URL: `git remote -v`"
19 echo "== Remote Branches: "
23 echo "== Local Branches:"
27 echo "== Configuration (.git/config)"
31 echo "== Most Recent Commit"
32 git --no-pager log --max-count=1
35 echo "type 'git log' for more commits, or 'git show' for full commit details."
37 echo "not a git repository."