Created
March 18, 2015 20:52
-
-
Save davidalpert/78d607ddab66f04a1026 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
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %-n%Cgreen(%ci)%Creset%-n' --date=relative | |
lg2 = "!git lg -2" | |
drop = "!sh -c 'git merge drop$1 && git ci --allow-empty --amend && git lg2' -" | |
patch = "!sh -c 'git merge patch$1 && git ci --allow-empty --amend && git lg2' -" | |
cd = "!git diff-index --cached --quiet HEAD --ignore-submodules -- && GIT_COMMITTER_DATE=\"$1\" git commit --allow-empty --amend -C HEAD --date \"$1\"" || echo >&2 "error: date change failed: index not clean!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment