Skip to content

Instantly share code, notes, and snippets.

@pmig
Created May 22, 2014 22:13
Show Gist options
  • Select an option

  • Save pmig/bf959d644b9be0751d19 to your computer and use it in GitHub Desktop.

Select an option

Save pmig/bf959d644b9be0751d19 to your computer and use it in GitHub Desktop.
#!/bin/zsh
# use gitk to explore your changes
# this skript uses zsh + .oh-my-zsh shortcuts (check them out - they are awesome anyway)
# you want to meld your commits?
# $git rebase -i HASH
# HASH = last commit to meld (you need to pick the latest)
GAS_TIME=$(date "+%Y-%m-%d %H:%M:%S")
GAS_CMSG="[AUTOSAVE on $GAS_TIME]"
while (true) {
git --no-pager log --reverse --stat --max-count=10
echo "=================================================="
git commit -am "$GAS_CMSG"
sleep 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment