Been a while since I have audited my git config. Need to cull the herd...
Several of these I used in previous jobs and never use any more. Still have some MacOS style ones with pbcopy (though I do have an alias to xclip on Linux).
[alias] br = branch ci = commit co = checkout datetag = !git tag `date "+%Y_%m_%d_%H%M"` df = diff # Show modified files in last commit. diffall = diff HEAD diffstaged = diff --staged nextrelease = log origin/dev ^origin/main --no-merges dl = "!git ll -1" # Show a diff last commit. dlc = diff --cached HEAD^ filelog = log --oneline --no-merges -- fl = log -t u init = init --template ~/.git_template # List oneline commits showing relative dates. ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative # List oneline commits showing dates. lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short lg = log -p # List commits showing changed files is invoked with git ll and looks like this. ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat logm = log --author="kepford" --decorate lol = log --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate lola = log --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --all lolm = log --author="kepford" --decorate --pretty=oneline --abbrev-commit ls = ls-files # Copies today's commits by me on a branch. today = "!git log --since=6am --author="kepford" --decorate --abbrev-commit | grep -vwE \"(Author:|Date:)\" | pbcopy | pbpaste | cat" sa = stash apply sl = stash list ss = stash save st = status # Commits on current branch. Assumes the branch was created from develop. thisbranch = log --no-merges dev.. undolast = reset --soft Head^ unstage = reset HEAD # diff-highlight http://theunixtoolbox.com/git-diff-highlight/ worddiff = !git diff --color | diff-highlight | less -r