Skip to content

Instantly share code, notes, and snippets.

View ggoodale's full-sized avatar

Grant Goodale ggoodale

View GitHub Profile
function silencing_stderr() {
$* 2>/dev/null
}
function branch_names() {
git br | awk '{print $1}' | grep -v '*' | xargs
}
function most_recent_commit() {
git log . | grep "Date: " | cut -c 9- | head -1
for repo in *
do
[ ! -d $repo ] && continue
[ ! -d $repo/.git ] && continue
cd $repo;
echo $repo;
git pull;
cd - > /dev/null
done