#!/usr/bin/env bash
while true
do
git fetch --prune;
git branch -vvv
echo "provide branch name to checkout:"
read branch
git checkout $branch;
git pull;
git log --decorate --pretty=tformat:'%h %d %ar %s' --first-parent --reverse -30;
git log -1
$1 # arg to import a command, such as 'exit'
done
No comments:
Post a Comment