Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
Git
* Readme
*_General
.gitignore for only php files
bash: gld
Branch
cloning with custom SSH port
git branch in shell prompt
how to turn a project into a bare repo
Scripts (be afraid)
Stash
URLs
11
found
auth
Name:
Category: Git
Body:
# bash function # git log of a directory (without going INTO the directory manually 'coz we're lazy fucks) function gld { if [[ "$1" == "" ]]; then echo " Shows last 10 lines (or so) of a fancy compact git log for the given directory." echo " Usage: $ gld <directory>" return; fi; if [[ ! -d "$1" ]]; then echo -e " \e[31mDirectory not found: '$1'\e[0m" return; fi; cd $1; glh; cd -; }
Footer