Skip to content

Instantly share code, notes, and snippets.

@cevhyruz
Last active January 15, 2018 16:36
Show Gist options
  • Save cevhyruz/554c439adc67e0f38357eb420a78b43b to your computer and use it in GitHub Desktop.
Save cevhyruz/554c439adc67e0f38357eb420a78b43b to your computer and use it in GitHub Desktop.
git live logging with working directory status for linux
#!/usr/bin/env bash
# Save in $HOME/.local/bin/scripts
# Make it executable
# $ sudo chmod +x git-loglive-status
# Add to my $PATH
# echo -e "# my custom script directory\nexport PATH='$HOME/.local/bin/scripts'":'"$PATH"' >>~/.profile
# Restart terminal or run
# $ source ~/.profile
while :
do
clear
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all $*
git status --short --untracked-files --branch --ignored --column
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment