Created
May 22, 2014 22:13
-
-
Save pmig/bf959d644b9be0751d19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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